Not unique, but we are now kindred (I did the same <:)
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 :]
Y=λf.(λ🤬.f(🤬🤬))(λ🤬.f(🤬🤬))
LOL I've never seen that before.
Do you use them both at the same time? Or do you switch between them rapidly? (Maybe you could make a taskbar button-toggle if it's the latter!)
A custom EFI app? Is that like a handrolled Unified Kernel Image with some Proxmox-specific addons in it? How'd you make it?
ooh I should do that for Obsidian instead of having an enormous directory of Pasted Image 202302050124300845012.pngs. =◡=
Triangulating your location. Are you... in the Milky Way Galaxy
?
(Thanks for reminding me to limit accumulator charge)
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:
- 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)
- 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
- 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.
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
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.
I also have a user for your partner