this post was submitted on 14 Jan 2025
55 points (100.0% liked)

Linux

57244 readers
1125 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 6 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
[–] Scott_of_the_Arctic@lemmy.world 3 points 6 months ago (1 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.

[–] ICastFist@programming.dev 3 points 6 months ago (1 children)

So you have to use a keyboard with your keyboard...

[–] Scott_of_the_Arctic@lemmy.world 3 points 6 months ago

With my laptop.

[–] captain_aggravated@sh.itjust.works 3 points 7 months ago (2 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 (2 replies)
[–] JetpackJackson@feddit.org 3 points 7 months ago

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

[–] haui_lemmy@lemmy.giftedmc.com 3 points 7 months ago* (last edited 7 months 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 2 points 7 months 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)
[–] mesamunefire@lemmy.world 3 points 7 months 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.

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.

[–] data1701d@startrek.website 3 points 7 months 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. 😈

[–] thejevans@lemmy.ml 3 points 7 months ago

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.

[–] nycki@lemmy.world 3 points 6 months ago (2 children)

wait how does your clipboard shortcut work op? that sounds nifty!

load more comments (2 replies)
[–] atzanteol@sh.itjust.works 3 points 7 months ago* (last edited 7 months 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)
[–] driving_crooner@lemmy.eco.br 3 points 6 months ago

I use this app (webapps is the name I think) to make apps for YouTube, Mubi and TorrentLeech and I have then pinned on the task bar and use them as apps instead of webpages. This is in my hometheater pc

[–] Kekin@lemy.lol 2 points 6 months 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

[–] merthyr1831@lemmy.ml 2 points 6 months ago

I do this too. just a very slick hot key combo imo

[–] fool@discuss.tchncs.de 2 points 6 months ago

Not unique, but we are now kindred (I did the same <:)

[–] knolord@lemmy.zip 2 points 7 months 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

[–] olafurp@lemmy.world 2 points 6 months ago

I use many KDE activities all mapped to a single hotkey. Meta+H, Meta+J, Meta+K, then L, Y, U, G.

I set my browser and maybe one other as sticky to show on all. I also have specific desktop picture for all of them.

On top of that I have a startup command that opens all applications I use for work. Each application is configured to open in a certain activity.

The end result is that instead of doing Alt-Tab or looking for the window I do Meta+Key and it's there in front of my eyes with focus.

[–] rodbiren@midwest.social 1 points 7 months 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.

[–] scrooge101@lemmy.ml 1 points 7 months ago (2 children)

I also seperate Firefox on different workspaces, but only manually. How is the extension called? Having it automated would save me some seconds every reboot.

[–] fool@discuss.tchncs.de 2 points 7 months ago* (last edited 6 months ago) (1 children)

edit: based on the other commenter I think I might be missing a simpler declarative way to do this. The following will be kept for posterity though


The main idea is:

  1. Use Window Titler to add a title. For me, if I want it on workspace 7, I title the window "7". (NOTE: The title will probably appear like [title], see below)
  2. Make a script that queries the window manager, and then dispatches a movement to the appropriate workspace. In Hyprland that might be hyprctl -j which gives
... json blahblah
"title": "[7] What's a unique customization on your Linux machine you think no one else has? - tchncs — Mozilla Firefox"
... json blahblah

but in Sway it might be something similar to using swaymsg. Only titled windows will have the bracket number thing so just regex that part

  1. Put it in autostart. Because Firefox takes a while to load on my junk machine I sleep for like 30 seconds to a minute before all the titles register.
[–] scrooge101@lemmy.ml 2 points 6 months ago

Thanks a lot!

[–] tankplanker@lemmy.world 2 points 7 months ago

Sway (and i3) you can assign windows to workspaces based on any property that is available in the swaymsg tree. It can do parital matches, so for example if you wanted your Lemmy firefox window to always start on workspace 3 you could use:

assign [title="lemmy" app_id="firefox"] workspace number $ws3

Title can use regex so you can do some pretty neat matching if you need it.

[–] Cysioland@lemmygrad.ml 1 points 6 months ago

"yubi [website name]" in Alt+F2 — asks yubikey for a TOTP code for a website and autotypes it into wherever I've got my focus

load more comments
view more: ‹ prev next ›