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

Linux

49059 readers
606 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).
top 50 comments
sorted by: hot top controversial new old
[–] superkret@feddit.org 15 points 1 day ago (2 children)
[–] A7thStone@lemmy.world 2 points 1 day ago (1 children)
[–] superkret@feddit.org 1 points 1 day ago (1 children)

With Gnome you have no other choice.

[–] Zeoic@lemmy.world 2 points 20 hours ago

Gnome is very much built around customization lol

[–] phoenixz@lemmy.ca 11 points 1 day ago

That's sick man! Get some help!

[–] circuit23@lemmy.dbzer0.com 10 points 1 day ago (1 children)

I made a user for my partner

[–] fool@discuss.tchncs.de 10 points 1 day ago (1 children)

I also have a user for your partner

[–] Flax_vert@feddit.uk 3 points 1 day ago* (last edited 1 day ago)

Haha!

Take my poor man's gold

🏅

[–] lipilee@feddit.nl 6 points 1 day ago

I have stickers on it, some of them hand drawn by my daughters.

[–] Eyedust@sh.itjust.works 9 points 1 day ago* (last edited 1 day ago)

Maybe a bit plain since I'm only at mediocre level in my Linux journey, but I use my favorite fonts for Kitty. Recursive Mono Linear and then for italics and comments in neovim I use Recursive Mono Casual Italic.

Recursive Linear is so tidy and neat, with just the lightest touch of personality. And Casual keeps that style but tweaks it just ever so slightly to a more comic. And they have sans versions of both as well for everything else.

I also made my own Starship prompt to match my desktop. It runs an easily reconfigurable color palette and uses color coded chevrons to denote different git statuses.

[–] IsoKiero@sopuli.xyz 9 points 1 day ago (1 children)

Small thing, but I really like it: I have ~/autoclean_tmp directory on most of the hosts I use as a desktop. Then on crontab I have a find-command which automatically deletes files which are 7 days or older. I can throw stuff I download from the internet and copy from other hosts, random text files when setting up new stuff and so on in there and they just vanish after a while.

[–] friend_of_satan@lemmy.world 3 points 1 day ago

I have the same type of thing. An alias that creates a tempdir that is based on the date, then cd's into it. Then a cron job that finds dirs that are older then N days old and deletes them. I use these for most of my scratch work. Having several days to look back at what you did and know when you did it is so nice.

[–] tanisnikana@lemmy.world 6 points 1 day ago (1 children)

My applications menu icon (or the “start” menu for the philistines) is a 🐢.

[–] Korhaka@sopuli.xyz 5 points 1 day ago

Does stuff I wrote myself count?

Apache server that has a bunch of webpages that are all configured by simple JSON files and loaded by PHP. The pages have buttons on them which when pressed enter macros. So I push "Deploy Landing Gear" and Shift+alt+F8 or some obscure as fuck combination no one would ever use normally gets pressed and the game can be set to use that keybind. Most of it is for simple immediate key presses but also made a few for macros as well.

The HTML/PHP that runs the show is a grand total of 2018 bytes, including comments. Plus a fairly bloated 2444 byte CSS file that includes some button colour options that I never use now because I decided they look ugly. Should update some of the background images though, my sheet steel Faulcon DeLacy logo looks a bit basic.

[–] nycki@lemmy.world 6 points 1 day ago (2 children)

I have Syncthing set up to copy save data between my pc and steam deck, but not just for emulator stuff: its got my entire modded minecraft directory and my balatro modloader nn there too.

[–] Eyedust@sh.itjust.works 5 points 1 day ago (2 children)

Syncthing is great and incredibly easy to use. I have mine set to sync my Obsidian notes so I don't have to pay for the official service.

I have tried multiple different open source note apps that offer free local sync, but I can't find anything I like. It frustrates me because I love open source.

[–] Zeoic@lemmy.world 2 points 20 hours ago

Take a look at the Self-Hosted LiveSync plugin for Obsidian. Requires some self hosting for a sync server, but it is damn flawless. I have my phone, desktop, laptop, and work laptop, all syncing through it. Syncs live too, so you can even see me typing on one device from another

[–] aes@programming.dev 2 points 1 day ago

I use the same setup with Syncthing and Obsidian. The git plugin sometimes gets confused, but nothing I can't untangle. I also use Syncthing for pictures off my phone, and ebooks onto it.

Actually, I think I do have a setup that might qualify as unusual: I use the scheduled backup feature of Podcast Addict to get a listing of listened podcast episodes, and then I inject them into my Obsidian notes.

load more comments (1 replies)
[–] mlg@lemmy.world 3 points 1 day ago

I'm using XFCE with Compiz, and since I have two monitors I have a 3D octagon instead of a 3D cube desktop.

[–] driving_crooner@lemmy.eco.br 3 points 1 day 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

[–] corsicanguppy@lemmy.ca 7 points 2 days ago

In all my servers I still have a cron->make routine running. It's a hold-over from 20 years ago and the state of IaC back then, and it's made its way onto every server I manage because it is simple and effective.

And it still does its job. 8 major RHEL releases later, and the thing it needs to do, it does.

Lennart would build 3 new daemons and link them all into dbus, I'm sure.

[–] olafurp@lemmy.world 2 points 1 day 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.

[–] dino@discuss.tchncs.de 4 points 2 days ago (3 children)

I type "power..." into my cli and press tab+enter to shutdown my computer. Same for reboot... 😆

[–] elo13@sopuli.xyz 2 points 1 day ago

I do the same except I only type "pow" :P

load more comments (2 replies)
[–] comfy@lemmy.ml 11 points 2 days ago* (last edited 1 day ago) (2 children)

While I doubt the concept is unique, the script is: a keyboard shortcut will check the clipboard for a YouTube link and then show launcher options for mpv or yt-dlp, including launch arguments for lower quality format and audio only. It launches that in a terminal for easier handling when yt-dlp doesn't work properly (much more common if using proxies, but also if a video is age-restricted or deleted).

So when I see a yt link here, I can just copy it, keyboard shortcut and then it's playing in my local video player.

edit: here's the script. It assumes xsel (clipboard access), rofi (menu creator), gnome-terminal (terminal) and notify-send (system notification on failure) are installed and working, you'll need to replace any which don't match your system. My DE just runs it in bash when the shortcut is entered.

Code (click to expand)

#!/bin/bash

ARR=()
ARR+=("mpv full")
ARR+=("mpv medium")
ARR+=("yt-dlp")

NORMAL_URL=`xsel -ob | sed -r "s/.*(v=|\/)([a-zA-Z0-9_-]{11}).*/https:\/\/youtube.com\/watch?v=\2/"`

CHOICE=$(printf '%s\n' "${ARR[@]}" | rofi -dmenu -p "mpv + yt-dlp from clipboard")
DOWNLOAD="false"
MPV="false"
OPTIONS=""

if [ "$CHOICE" = "mpv full" ]; then
	MPV="true"
fi

if [ "$CHOICE" = "mpv medium" ]; then
	MPV="true"
	OPTIONS+="'--ytdl-format=bv*[height<721]+ba' "
fi

if [ "$CHOICE" = "yt-dlp" ]; then
	DOWNLOAD="true"
fi

if [ $MPV == "true" ]; then
	COMMAND="mpv $OPTIONS $NORMAL_URL"
	gnome-terminal --title "$NORMAL_URL" -- bash -c "echo $COMMAND;$COMMAND;if [ \$? -ne 0 ]; then notify-send 'yt-dlp failed' $NORMAL_URL; bash; fi;"
elif [ $DOWNLOAD == "true" ]; then
	COMMAND="yt-dlp $OPTIONS $NORMAL_URL"
        gnome-terminal --title "$NORMAL_URL" -- bash -c "echo $COMMAND;$COMMAND;if [ \$? -ne 0 ]; then notify-send 'yt-dlp failed' $NORMAL_URL; bash; fi;"
fi

[–] prole@lemmy.blahaj.zone 4 points 1 day ago (1 children)

Uh this sounds awesome, care to share?

[–] comfy@lemmy.ml 3 points 1 day ago

Now added to my comment :)

[–] dino@discuss.tchncs.de 6 points 2 days ago (2 children)

Uh I would be interested in that actually! Nowadays Youtube generates lots of problems with freetube due to their cookie bullshit and I feel with mpv(yt-dlp) in cli I at least have the option to see whats going on.

[–] comfy@lemmy.ml 3 points 1 day ago

Now added to my comment :)

[–] jherazob@beehaw.org 2 points 1 day ago (1 children)
[–] comfy@lemmy.ml 3 points 1 day ago (1 children)

Now added to my comment :)

[–] jherazob@beehaw.org 3 points 1 day ago
[–] nycki@lemmy.world 3 points 1 day ago (1 children)

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

[–] fool@discuss.tchncs.de 4 points 1 day ago (1 children)

I think I mentioned it but here it is again in case the comment didnt federate

click to enlarge

# snippet based on end4 dotfiles -- FIXME edge case where a
#     preexisting tmp.png might be overwritten
# English
bind = Super+Shift,T,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png"
# Korean
bind = Super+Shift,K,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l kor "tmp.png" - | wl-copy && rm "tmp.png"
# Japanese
bind = Super+Shift,J,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm "tmp.png"

Pipe grim and slurp (selects part of the Wayland screen then copies) into a tmp.png, tesseract it into the clipboard, then delete the tmp.png. Has like 1 sec of lag tho :]

[–] Kanedias@lemmy.ml 5 points 1 day ago

why do you even need a temporary file?

$ slurp | grim -g - - | tesseract stdin stdout -l eng+kor+jpn | wl-copy -t 'text/plain'
[–] Kekin@lemy.lol 2 points 1 day 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 1 day ago

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

[–] fool@discuss.tchncs.de 2 points 1 day ago

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

[–] ThemboMcBembo@beehaw.org 15 points 2 days ago (2 children)

I have two mice, one for either hand, and use xinput to flip the buttons on JUST the left one. It's actually one of the main things keeping me from moving to Wayland, which doesn't seem to have the same configuration features

load more comments (2 replies)
load more comments
view more: next ›