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

Linux

49059 readers
1036 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 3) 24 comments
sorted by: hot top controversial new old
[–] Ephera@lemmy.ml 8 points 4 days ago

I've got basically the bspwm workflow, but on KDE.

So, bspwm has tiling of windows and doesn't want you to minimize (nowadays, it actually has a minimize-feature, but back when I last used it, it didn't). As a result, if a window is open, it is visible on some workspace. If you want to hide windows, put them on a different workspace.
I like that workflow, because while it probably seems complex when you first hear about it, it actually simplifies things. When you're looking for a window, you don't have to check all the workspaces and minimized windows and behind other windows.

KDE adds to that, in that I can have a workspace overview in my panel, so where I can see all workspaces with the windows that are visible on them (which with this workflow is all windows on that workspace). I like to call it my minimap.
It makes the workflow a lot easier to use, but it also allows me to group workspaces by location. So, if I'm working on a topic, I often have a Firefox window on one workspace, my text editor on the workspace below and then a terminal on the workspace below that. If I then realize, I need to quickly look up something for a related topic, I'll open up a new Firefox window two workspaces below that (leaving an empty workspace as separator). If I do something completely different, I might leave a whole bunch of empty workspaces in between. Or, well, KDE actually allows grouping workspaces with a feature called "Activities", so I'll often switch Activities.

I find that works a lot better for multi-tasking than the traditional Windows workflow of one window per application, with all kinds of different topics mixed into all kinds of ungrouped windows. If I switch between topics, I just go to the right location on my minimap and I've all the topic-related information in the windows that are there.

[–] scrooge101@lemmy.ml 4 points 3 days 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 3 points 3 days ago* (last edited 3 days 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)
load more comments (1 replies)
[–] mcmodknower@programming.dev 6 points 4 days ago (1 children)

I open links from different categories of websites in different firefox profiles via a bash script. For example the current one is named "memes".

Also i have a second panel at the top of my second monitor so i can always see the current date and time.

[–] myersguy@lemmy.simpl.website 4 points 4 days ago

Also i have a second panel at the top of my second monitor so i can always see the current date and time.

I think this one is probably very popular. I had a very hard time giving Gnome a chance because of its inability to do this by default.

[–] furrowsofar@beehaw.org 5 points 4 days ago

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

[–] oldfart@lemm.ee 3 points 3 days 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?

[–] fool@discuss.tchncs.de 2 points 3 days ago* (last edited 3 days ago)

pasting from my keybind config

# 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"

I just pipe grim and slurp (i.e. select part of the Wayland screen then copy) into a temporary png, tesseract it into the clipboard, then delete the temporary png.

edit: clarified

[–] tankplanker@lemmy.world 2 points 3 days ago

Mine is probably more of a combo of things to streamline my workflow than anything else.

I use Sways multiple workspaces to segregate my apps into different workspaces for different tasks on startup of that app using the assign function in my Sway config. For example VS Code and one particular Firefox window always goes to Workspace 3.

I use the Layman Sway scripts to force all my normal workspaces to different layouts that is appropriate for that function. So workspace 3 with VS Code and a Firefox window is set in a 75/25 split with VS Code set to always take the bigger share. I can switch the two sides from largest on the left to largest on the right, or swap the apps between the two splits, or make a window full-screen with simple keyboard shortcuts.

Odd workspaces are on my left monitor, even ones on the right. This coupled with per workspace wall paper (all my windows are translucent, not for everybody I know) and particular tasks locked to predefined workspaces means I am never hunting around for something. Even if I did lose something I can use rofi to switch to it. If its an essential app I can use my keyboard shortcut that I use to launch the app, switch to it using swayr by activating the shortcut again.

I have used QMK for my keyboard to reduce the number of keys I must use to activate most of my shortcuts, and move them to my number row and home row using layers, double taps, and holds. I try to layer up the same family of functions on the same key but on different layers, so for example, the VI arrow keys move between windows, resize windows, move windows, depending on which layer I have chosen.

load more comments
view more: ‹ prev next ›