Show HN: Vim-Like Layer for Xorg and Wayland
51–60 of 64 posts
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#52I am also using a custom keyboard layout (basically the movement layer from the NEO layout + left alt → left ctrl, right alt → left alt, caps lock → esc). Initially it was implemented as xmodmap, then as xkb layout and finally as C program using Interception Tools [0]. I had problems with both xmodmap and xkb where it wouldn't work in certain applications; Interception tools works everywhere (even in VMs and outside…
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#53I am also using a custom keyboard layout (basically the movement layer from the NEO layout + left alt → left ctrl, right alt → left alt, caps lock → esc). Initially it was implemented as xmodmap, then as xkb layout and finally as C program using Interception Tools [0]. I had problems with both xmodmap and xkb where it wouldn't work in certain applications; Interception tools works everywhere (even in VMs and outside…
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
#54I've been thinking about doing something like this for quite a while. One question that's been bothering me is: How will I know what mode I'm in? Can I somehow change the cursor system-wide? Can I add some sort of notification to my i3bar? EDIT: I just noticed that the article mentions this as a "bonus" at the end. Does this work reliably with i3status-rust? In case of i3bar at least there'd always be a delay coming…
Holding down capslock turns out to not be a problem in practice. The main benefit of vim style navigation for me is not leaving the home row.
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#55I've done a similar thing at the hardware level using a QMK layer. The main benefit for me is being able to use VIM movement keys in every text input. As I'm using a dual boot setup, it's also pretty handy to have the mapping directly embedded in the keyboard firmware.
Was thinking that the whole time I was reading this! I actually have my layout optimized for i3/Vim-controls and it's the default for GergoPlex. I used to use xmodmap hacks but I got sick of maintaining changes across/OS's, having it on the keyboard makes it so much easier. Only downside is carrying around a QMK keyboard! Layout: https://1.bp.blogspot.com/-rRS_TOYuIQQ/XhRERox3moI/AAAAAAABE... GergoPlex: https://www.g…
In fact, I got so addicted to keybindings that I tweaked the chording engine to make chords QMK-layer-dependent. The ability to do "modal chords" is just great.
Anyway, thank you for making these things -- I may never have heard of QMK if it wasn't for your boards!
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#56I've done a similar thing at the hardware level using a QMK layer. The main benefit for me is being able to use VIM movement keys in every text input. As I'm using a dual boot setup, it's also pretty handy to have the mapping directly embedded in the keyboard firmware.
I did the same thing on my Ergodox with QMK, only with emacs/readline bindings. control-M for enter, control-A for beginning of line, control-E for end of line, control-N for next line, control-H for backspace etc... It makes using those clunky web edit boxes (such as the one I'm typing this into right now) somewhat bearable. Getting a fancy ergonomic programmable keyboards is one of the best decisions I've made over…
I notice carpal tunnel pain in my wrists when I tension or release the tendons in my wrist that curl my fingers to move them up and down. Moving them from side to side doesn't hurt at all, so I'm skeptical that there's anything ergonomically wrong with the normal staggered layout. Split still seems like a good idea, though.
How infuriating are regular keyboards after getting used to Ergodox?
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#57I've been thinking about doing something like this for quite a while. One question that's been bothering me is: How will I know what mode I'm in? Can I somehow change the cursor system-wide? Can I add some sort of notification to my i3bar? EDIT: I just noticed that the article mentions this as a "bonus" at the end. Does this work reliably with i3status-rust? In case of i3bar at least there'd always be a delay coming…
I wrote a keyboard hook in C for Windows (I was using AHK but it was unreliable). Initially it was modal but I found over time that I would get caught out. So now it's not modal. I hold down capslock and then use ijkl to navigate etc. The only thing left that is modal is spacebar for select/visual mode but I still a have to hold down capslock for that (e.g. capslock down, space bar, ijkl to select text, capslock up).…
Same here. ijkl is so much better!
> So now it's not modal. I hold down capslock and then use ijkl to navigate etc.
Hmm… maybe I should try that. Then again, I am afraid of getting the Emacs pinky all over again…
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#58I've been thinking about doing something like this for quite a while. One question that's been bothering me is: How will I know what mode I'm in? Can I somehow change the cursor system-wide? Can I add some sort of notification to my i3bar? EDIT: I just noticed that the article mentions this as a "bonus" at the end. Does this work reliably with i3status-rust? In case of i3bar at least there'd always be a delay coming…
In my case, the interval is set to 0.5 which has a slight delay but enough for me to not mind. I usually have a mental idea of what mode I am in at all times. > Can I somehow change the cursor system-wide? Check the arch wiki article on Cursor themes[0]. Generally,, DEs have nice support for switching cursor themes after startup. In either case, you would need to modify `xkb_swapper.sh` to set a cursor theme whenever…
> In my case, the interval is set to 0.5
I noticed that more frequent updates of the status bar do eat away at the battery, though. :\
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#59Earlier quoted context omitted.
Was thinking that the whole time I was reading this! I actually have my layout optimized for i3/Vim-controls and it's the default for GergoPlex. I used to use xmodmap hacks but I got sick of maintaining changes across/OS's, having it on the keyboard makes it so much easier. Only downside is carrying around a QMK keyboard! Layout: https://1.bp.blogspot.com/-rRS_TOYuIQQ/XhRERox3moI/AAAAAAABE... GergoPlex: https://www.g…
I recently got a GergoPlex and it's so fun to be able to actually reprogram the keyboard itself. In fact, I got so addicted to keybindings that I tweaked the chording engine to make chords QMK-layer-dependent. The ability to do "modal chords" is just great. Anyway, thank you for making these things -- I may never have heard of QMK if it wasn't for your boards!
Re: Show HN: Vim-Like Layer for Xorg and Wayland
#60They could have just done something like this in the sway/i3 config:
mode "normal" {
bindsym i mode "default"
bindsym q kill
bindsym y exec volchange -5
bindsym u exec volchange +5
bindsym o exec brightness -200
bindsym p exec brightness +200
bindsym w exec mpc prev
bindsym e exec mpc toggle
bindsym r exec mpc next
...
}
bindsym $mod+c mode "normal"
EDIT: I've realized their method has the benefit of working with other window managers that don't support modes or on-the-fly reconfiguration.