Re:Show HN: Vim-Like Layer for Xorg and Wayland
by codethief on Thursday August 27, 2020 @04:30AM
(#24291307)
I came here to mention Interception Tools and you beat me to it! They really do work incredibly well! Currently I'm only using them to map my space bar to Ctrl upon holding using this[0] plugin.
[0] https://gitlab.com/interception/linux/plugins/dual-function-...
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by fock on Thursday August 27, 2020 @11:38AM
(#24294735)
Does it need root/sudo? Or only plugdev or some other "sit-in-front"-privileged group and there you go?
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by renke1 on Thursday August 27, 2020 @12:09PM
(#24295088)
I don't think the program itself needs elevated privileges, because it only reads from stdin and writes to stdout. I am running the interception tools as systemd service, though. I think the Intercepton Tools themselves need elevated privileges; I mean, it's kind of key logger if you think about it.
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by Fnoord on Thursday August 27, 2020 @08:20AM
(#24292899)
I'm looking for a way to have a key press becoming a repeated key press (for example 'a' producing 'a' every 150 ms). Is that possible with this software? I'm able to do it with AutoHotKey, but I'm unable to get it to work in Wine.
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by renke1 on Thursday August 27, 2020 @08:39AM
(#24293045)
I am pretty sure this is possible. The program called by Interception Tools can basically do anything (including being stateful), it just reads input events, rewrites it, ignores it, or raises entirely different input events etc. You could probably move your mouse with arrow keys if you wanted to.
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by Fnoord on Tuesday September 01, 2020 @10:30AM
(#24342117)
I've been able to get AutoHotKey working with almost the same script I use on Windows (had to make a few adjustments because keys were not recognized even though they're exactly the same). The way I got it working is by running it in the same Wine container.
I still prefer a native tool, to be fair, but I haven't been able to Interception to work. It seems a bit too complicated to my liking. Not that AHK is not complicated (it is) but the documentation is superb.
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by Fnoord on Saturday August 29, 2020 @05:16PM
(#24319493)
What it would need is some kind of way to define delay. Is that possible? I've tried this with multiple programs, including one where you could script in Python. Never got it to work, sadly.
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by renke1 on Thursday August 27, 2020 @09:35AM
(#24293509)
Here is my layout for people who wonder how it is implemented.
https://gist.github.com/renke/e08a6822df0e26b314288378db9d77...
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by lejboua on Thursday August 27, 2020 @04:35AM
(#24291340)
Thanks for this! I wanted to have a space that doubles as a layer key if kept pressed, and I wasn't having great success trying to do it with a custom program using the X bindings. This seems way simpler, while also more powerful.
[0]: https://gitlab.com/interception/linux/tools/blob/master/READ...