Re:Programs that have saved Hacker News 100+ hours by automa...
by sgc on Saturday February 12, 2022 @06:23PM
(#30317392)
Is there anything like AutoHotKey for Linux (Debian/Ubuntu)? It's the thing I miss the most from using Windows.
[ Parent
| on HN ]
Re:Programs that have saved Hacker News 100+ hours by automa...
by heavyset_go on Saturday February 12, 2022 @06:27PM
(#30317413)
If you're on X11, there's xdotool and for Wayland, ydotool.
Re:Programs that have saved Hacker News 100+ hours by automa...
by sgc on Saturday February 12, 2022 @07:00PM
(#30317648)
The potential in xdotool is there, however what I loved about AutoHotKey was the ability to inspect windows and actions to use for scripting purposes. Not sure if there is such a feature I am missing in xdotool or similar.
Re:Programs that have saved Hacker News 100+ hours by automa...
by heavyset_go on Saturday February 12, 2022 @07:21PM
(#30317764)
It's not the same, but kwin's rules and scripting features allow you to inspect windows and automate some of their actions. If you combine them with xdotool/ydotool, you might be able to recreate some of the features you expect.
Re:Programs that have saved Hacker News 100+ hours by automa...
by sgc on Saturday February 12, 2022 @08:16PM
(#30318129)
Sending me towards the right path.
It looks like I could write a little script using some of xdotools built in tools for cursor coordinates, active window info and geometry etc that would be pretty useful. As a quick solution it could alert using notify-send on a key combination, although figuring out how to append the data to the cursor overlay would be even nicer.
Re:Programs that have saved Hacker News 100+ hours by automa...
by heavyset_go on Saturday February 12, 2022 @11:19PM
(#30319182)
There's also wmctrl and xprop.
http://tripie.sweb.cz/utils/wmctrl/
https://www.freedesktop.org/wiki/Software/wmctrl/
https://www.linuxjournal.com/magazine/hack-and-automate-your...
https://www.x.org/releases/X11R7.5/doc/man/man1/xprop.1.html
The 'Tips' section of the first link also has several other utilities that are pertinent: http://tripie.sweb.cz/utils/wmctrl/#tips
Re:Programs that have saved Hacker News 100+ hours by automa...
by dddw on Saturday February 12, 2022 @06:43PM
(#30317527)
Espanso does similar things (cross-platform)
https://espanso.org/