fool

joined 1 week ago
[–] fool@discuss.tchncs.de 3 points 4 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.
[–] fool@discuss.tchncs.de 2 points 4 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

[–] fool@discuss.tchncs.de 13 points 4 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.

[–] fool@discuss.tchncs.de 13 points 4 days ago

LOL yeah that's a nice thing to put in the company search history

[–] fool@discuss.tchncs.de 3 points 4 days ago

I dotted up my dwm install?

Its kind of verbable :p

[–] fool@discuss.tchncs.de 1 points 4 days ago* (last edited 4 days ago) (1 children)

edit: I rescind this comment because I seem to have misunderstood what the commenter meant by reclaiming. Sorry, I did not mean to be hateful.

[–] fool@discuss.tchncs.de 8 points 4 days ago

Ebbin my neezerinstall until it scrooges

[–] fool@discuss.tchncs.de 12 points 4 days ago* (last edited 4 days ago) (1 children)

No, Gentoo is alive! I can catch up to upstream Firefox's LTO+Clang+PGO optimizations and use my own version of Debian alternatives and save 3MB by removing iso9660 support from REFind!

It seems pretty alive to me though. 5/25 of the month-top-posts in r/unixporn have it in the title, and I'm sure more are present in the comments. And a lot of YT videos on it still mention it.

[–] fool@discuss.tchncs.de 11 points 4 days ago* (last edited 4 days ago) (1 children)

The old thread about it covers both sides of the coin.

Basically, "ricing" insulted weird Asian car customizations -> "ricing" became a more generic "weird" customization term (this is the most famous transitive example I can think of) -> ricing's origin was forgotten by a decent amount of people. (I mentioned it in the first spoilered text)

But I'd like to keep the focus on yoloing a term out of nowhere :D

view more: ‹ prev next ›