Re:Show HN: Vim-Like Layer for Xorg and Wayland
by addcninblue on Thursday August 27, 2020 @03:16AM
(#24290906)
I believe a possible reason is that the OP used xkb, which if I'm not mistaken is lower level than xdotool (so xdotool would not suffice)
Re:Show HN: Vim-Like Layer for Xorg and Wayland
by ceda_ei on Thursday August 27, 2020 @03:34AM
(#24291001)
I am the OP. What I tried was something along these lines.
e.g. to get w in normal mode to send Ctrl+right, I did the following.
1. Bind w to F14 in normal mode.
2. In i3 config, add `bindsym 0xffcb exec xdotool key ctrl+Right`
If I simply ran the command (`xdotool key ctrl+Right`) in normal mode, it would work but it didn't work via a binding.
This was infact the initial idea behind all this but after quite some testing xdotool turned out to be unreliable so I repurposed it as a shortcut layer.
I tried doing the same using xdotool by binding Ctrl+F<something> to PageDown but for some reason it didn't work for some reason and I didn't investigate enough.