this post was submitted on 14 Jan 2025
137 points (99.3% liked)

Linux

49059 readers
895 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Just wondering since I know a lot of people quietly use a screen-area-select -> tesseract OCR -> clipboard shortcut.

  • I separate subjects of interest into different Firefox windows, in different workspaces -- so I have an extension title them and a startup script parse text to ask the compositor to put them in the correct workspace (lets me restart more conveniently).
  • I have automatically-set different-orientation wallpapers for using my 2-in-1 depending on whether I use it in portrait or landscape (kind of just for looks, but I don't think if anyone else adds a wallpaper change to their screen rotation keybind).
(page 2) 50 comments
sorted by: hot top controversial new old
[–] vort3@lemmy.ml 14 points 3 days ago

I use compose key sequences to save time writing out long email addresses. For example, I have something like this in my ~/.XCompose:

<Multi_key> <b> <o> <s> <at>: "myangryboss@company.com" # Email of my very angry boss

So I can just type Compose (right alt on my system), bos@ and get his email address. Less error prone than typing out emails manually.

I'm probably not the only one to use compose strings as a replacement to a text expander, but I don't know anyone else who does this.

[–] Kekin@lemy.lol 2 points 2 days ago (2 children)

Coming from Windows, I set up KDE's Spectacle to open with Super + Shift + S in Area Select Mode and save and copy to clipboard on click release

Maybe not as unique but kinda neat I think

load more comments (2 replies)
[–] SitD@lemy.lol 7 points 2 days ago

the ability to use two Bluetooth dongles simultaneously, each for one device. try that on Microsoft's clown os and see how pressing the gamepad triggers makes the bluetooth headphones chop up the sound 😂

[–] rimu@piefed.social 41 points 3 days ago (2 children)

I have an old gamer keyboard with extra programmable keys on the side, which I use for cut, copy, paste, close tab, close window, etc. Logitech provides drivers/software for Windows & Mac only.

To make it work I have a custom monkey-patched USB driver that I compiled from source, some weird daemon that interacts with the driver and some shell scripts on top of that. I'm not sure how but it works thanks to a 9 year old youtube video made by a guy from eastern europe somewhere.

[–] fool@discuss.tchncs.de 13 points 3 days ago (1 children)

Awesome...

Care to share the video/code? ~~I actually have something similar (Corsair Scimitar's macro customizer doesn't work on Linux~~

As I was writing this I found a project that deals with Corsair MMO mice on Linux so now I will be going on an egg hunt.

[–] rimu@piefed.social 15 points 3 days ago

video https://www.youtube.com/watch?v=8gAT-BbyOWw

code https://github.com/Leproide/Linux-G15-Daemon-Logitech-G110-

I'm pretty sure it will only work with a handful of old Logitech keyboards.

When I eventually upgrade my OS and can't compile the stack for some reason, I've got a Sun Type-7 waiting in the wings.

load more comments (1 replies)
[–] bjoern_tantau@swg-empire.de 14 points 3 days ago

I'm one of at most a handful people in the world with a full disk encrypted Steam Deck and unlocking using the touchscreen.

Until someone implements https://github.com/ublue-os/bazzite/issues/464 in Bazzite.

[–] monovergent@lemmy.ml 6 points 2 days ago

The text editor shortcut on my taskbar runs a sort of autosave script in ~/.drafts. I wanted my text editor to function more like the one on my phone so I can just jot down random thoughts without going through the whole ritual of naming and saving. It creates YYYYMMDD_text in ~/.drafts (or YYYYMMDD_text_1 etc. if it already exists) and launches Pluma, which I also have configured to autosave every 10 minutes.

The other thing extends beyond Linux itself a bit. I like to joke that I have the most secure NT 4 / Windows 95 lookalike ever put together. Aside from the encrypted and hardened Debian base (/boot is also encrypted), I was in part inspired by Apple's parts pairing (yikes!). So my coreboot is configured to only accept my boot disk. If it's swapped out or missing, or if I want to boot something else, it will ask for a password. In the unlikely event my machine gets stolen, the thief must at a minimum reflash the BIOS or replace the motherboard to make it useful again. Idk, it amuses me every time I think about it.

[–] faercol@lemmy.blahaj.zone 12 points 3 days ago (4 children)

I boot on a custom EFI app to control my dualboot (instead of systemd-boot or grub) that asks a service on my proxmox server which OS I'm supposed to boot.

Overkill, but it allows me to control my dual-boot without a keyboard in my computer (because it's a Bluetooth keyboard so I can't really use it in grub anyway)

load more comments (4 replies)
[–] jordanlund@lemmy.world 29 points 3 days ago (1 children)

Machined badge reading "Built Not Bought".

My dad used to put them on the cars he built.

[–] atzanteol@sh.itjust.works 18 points 3 days ago (1 children)

My dad used to put them on the cars he built.

That's pretty rad.

[–] jordanlund@lemmy.world 12 points 3 days ago

He was a rad guy.

CTRL+SHIFT+L to sync my room lights to the screen using huenicorn. Plan on hooking up openrgb as well when I can be bothered to write a script.

[–] lengau@midwest.social 7 points 3 days ago
  • I have bash scripts light and dark that make dbus calls to set my global theme to light or dark mode. I switch between them regularly, and opening system settings and pressing a button is too inconvenient.

Your first one sounds similar to me though - I use activity-aware Firefox to separate my personal and work accounts on my personal and work plasma activities.

[–] data1701d@startrek.website 11 points 3 days ago

On my desktop, I wrote a Python script that pulls a random Star Trek: The Next Generation or Deep Space Nine script from a folder and prints it in STDOUT. I use this in the XScreenSaver Text Manipulation > Program option to turn Star Trek into a screen saver.

Currently, I use it with the Apple II screensaver, but in its original incarnation, I used the Star Wars intro screensaver. 😈

[–] Scott_of_the_Arctic@lemmy.world 3 points 2 days ago (2 children)

I spilled a glass of scrumpy on the keyboard and a, s, and d no longer work. So I have to use a keyboard with it.

load more comments (2 replies)
[–] twinnie@feddit.uk 5 points 3 days ago

I created my own openSUSE splash screen for KDE because I felt all the existing ones were a bit amateur and I wanted something professional looking. I haven’t published it because I can’t be bothered creating an account. It only took about 15 minutes because I chopped up another one which had clearly chopped up another one.

[–] golden_zealot@lemmy.ml 14 points 3 days ago (2 children)

I am indecisive when it comes to wallpapers so I have a script somewhere which accepts tag-words as arguments and then scrapes wallhaven.cc for those words at the resolution of my setup and picks one that contains those words at random before downloading it to my wallpapers folder and setting it as my wallpaper image.

So for example, you could just know you want something blue so you would run wallpaper blue and it just grabs one and sets it. You could get a wallpaper of the sky, of a blue car, of the ocean, whatever happens to be a wallpaper that met the criteria of the word/s supplied.

[–] dasenboy@lemm.ee 2 points 2 days ago (1 children)

KDE actually has a plugin that does just that, I use it currently to rotate a fantasy illustration as my wallpaper every hour from that site.

[–] golden_zealot@lemmy.ml 1 points 2 days ago

Oh neat!

My script is for gnome, but I wonder if there us an equivalent gnome extension in existence as well.

[–] LiveLM@lemmy.zip 16 points 3 days ago* (last edited 3 days ago) (1 children)

Risky business considering there's always some horny anime crap mixed in on Wallhaven.
Filters and tags only help so much since lots of it either has poor tags or no tags at all.

[–] golden_zealot@lemmy.ml 13 points 3 days ago (1 children)

There is a toggle for SFW/Sketchy which in my experience has worked pretty well in avoiding such things, but you are probably right it does not catch everything.

If such a thing happened, I would just re-run the same command to update to a different one though. I guess I generally just make sure no one is in the room when it runs haha.

[–] SeekPie@lemm.ee 5 points 3 days ago

Whenever you get 3 in a row, you know what you have to do.

The gods have given you a sign.

[–] haui_lemmy@lemmy.giftedmc.com 9 points 3 days ago* (last edited 3 days ago) (1 children)

Definitely not nobody but statistically VERY FEW people will have this combination:

  • pop!os (fight me!)
  • script that limits accumulator charge to 80% on asus laptop
  • script that turns on vpn if out of home and kicks off a backup if at home (through wifi ssid)

Edit: nice try to fingerprint me, big tech. You succeeded! /j

[–] fool@discuss.tchncs.de 5 points 3 days ago (1 children)

Triangulating your location. Are you... in the Milky Way Galaxy?

(Thanks for reminding me to limit accumulator charge)

load more comments (1 replies)
[–] Chimrod@jlai.lu 10 points 3 days ago

My keyboard automatically change the keys depending of the app I'm using: closing a tab in the terminal or closing a tab inlthe browser are always the same key.

https://git.chimrod.com/smartcropad.git/about/

[–] thejevans@lemmy.ml 15 points 3 days ago (1 children)

I have scripts set up to switch between my desk setup and my home theater setup that swap monitor configurations with wlrandr and default audio devices in wireplumber. These scripts are triggered with the "Netflix" button on my Nvidia Shield remote via Home Assistant and SSH. Simultaneously on Home Assistant power to the peripherals on my desk is toggled, the TV input is toggled between the Nvidia Shield and the PC, my AV receiver settings are toggled, and if the PC was asleep, it's turned on with a WoL magic packet.

load more comments (1 replies)
[–] captain_aggravated@sh.itjust.works 7 points 3 days ago (3 children)

I'm pretty sure no one else has my shell script that takes a picture, uses imagemagick to copy a scaled down version of it to a special folder, and then build a string that allows me to just middle click paste the image into Rednotebook so it appears correctly.

load more comments (3 replies)
[–] knolord@lemmy.zip 6 points 3 days ago

I have a custom script, which changes the fan profile (in my case between two thinkfan config files) depending whether the dock is connected or not. That one gets triggered whenever it switches the power source (AC or BAT0). (AC gets plugged in -> script starts -> check if dock is connected -> if connected run different profile)

It's janky but very helpful when it works :D

[–] atzanteol@sh.itjust.works 11 points 3 days ago* (last edited 3 days ago) (6 children)

I've got a RPI running a full-screen 'kiosk' view from homeassitant that turns an external display on/off based on a motion sensor.

So basically it's showing current temperatures, thermostat control, etc. but I have the display turn off after X minutes of no movement and turn on when there has been movement so it's only on when you're in the room.

load more comments (6 replies)
[–] mesamunefire@lemmy.world 11 points 3 days ago

I have a meshtastic script that runs once a day that sends a weather report for our local area at 6:00 am. It was based off a script that some awesome person did. I also have a script that once a week sends out ham/meshtastic events to all local people. Its worked out pretty well.

[–] rodbiren@midwest.social 5 points 3 days ago

I have a zellij snd micro config for journaling and writing that makes a completely borderless full screen terminal with no decoration whatsoever and narrows the terminal for micro to the upper half of the middle 1/3 of my screen.

It helps me focus and limiting to the upper half and middle 1/3 makes it easier for my eyes. I get distracted easily and this helps keep my editor from being the source of that.

[–] JetpackJackson@feddit.org 8 points 3 days ago

Custom cowsay written in Rust that pulls German song lyrics from my favorite band from a text file?

load more comments
view more: ‹ prev next ›