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

Linux

49467 readers
648 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
[–] [email protected] 6 points 2 weeks ago

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

[–] [email protected] 5 points 2 weeks 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.

[–] [email protected] 5 points 2 weeks 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.

[–] [email protected] 5 points 2 weeks ago

I use hot mount SATA slots for backup and other media. Not that common on workstations. Sure, common on servers.

[–] [email protected] 4 points 2 weeks 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.

[–] [email protected] 5 points 2 weeks 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.

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks 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.
load more comments (1 replies)
[–] [email protected] 4 points 2 weeks ago (3 children)

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

load more comments (3 replies)
[–] [email protected] 4 points 2 weeks ago

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

[–] [email protected] 3 points 2 weeks 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.

[–] [email protected] 3 points 2 weeks ago (1 children)

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

[–] [email protected] 3 points 2 weeks ago

With my laptop.

[–] [email protected] 3 points 2 weeks 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

[–] [email protected] 3 points 2 weeks ago (1 children)

ChatGPT wrote a Python program that does select->Tesseract OCR for me, but it doesn't always work right with two monitors. I'm too stupid to correct it. How have you done yours, what are you using for selecting the area?

load more comments (1 replies)
[–] [email protected] 3 points 2 weeks ago (1 children)

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

[–] [email protected] 4 points 2 weeks 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 :]

load more comments (1 replies)
load more comments
view more: ‹ prev next ›