4 ms·
Is there anything like AutoHotKey for Linux (Debian/Ubuntu)? It's the thing I miss the most from using Windows.
by sgc 5y ago
Is there anything like AutoHotKey for Linux (Debian/Ubuntu)? It's the thing I miss the most from using Windows.
- heavyset_go 5y agoIf you're on X11, there's xdotool and for Wayland, ydotool.
- sgc 5y agoThe 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.
- heavyset_go 5y agoIt'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.
- sgc 5y agoSending 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.
- heavyset_go 5y agoThere's also wmctrl and xprop. http://tripie.sweb.cz/utils/wmctrl/ http://tripie.sweb.cz/utils/wmctrl/ https://www.freedesktop.org/wiki/Software/wmctrl/ https://www.freedesktop.org/wiki/Software/wmctrl/ https://www.linuxjournal.com/magazine/hack-and-automate-your-desktop-wmctrl https://www.linuxjournal.com/magazine/hack-and-automate-your... https://www.x.org/releases/X11R7.5/doc/man/man1/xprop.1.html 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 http://tripie.sweb.cz/utils/wmctrl/#tips
- dddw 5y agoEspanso does similar things (cross-platform) https://espanso.org/ https://espanso.org/
- TeamXe 5y agoAutokey https://github.com/autokey/autokey https://github.com/autokey/autokey
- sgc 5y agoI tried it and found that it did not do enough to make it useful for me. Definitely the first thing to look at though.