Live data from Hacker News

Show HN: Vim-Like Layer for Xorg and Wayland

cedaei.com

61–64 of 64 posts

Re: Show HN: Vim-Like Layer for Xorg and Wayland

#61
post #55

Earlier quoted context omitted.

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!

Modal chords sound interesting. Would you mind linking to your keymap / QMK fork?

Sure! I don't have the GergoPlex keymap on Github yet (still a WIP, that one...) but I used the modal chords concept in my Faunchpad keymap as well. Here's the .def file with "modal chords" in it (the first parameter is the layer aka mode, then the rest are the usual ones.)

https://github.com/luketurner/qmk_firmware/blob/master/keybo...

The forked engine (with very minimal changes) that's used in that keymap is here:

https://github.com/luketurner/qmk_firmware/tree/master/keybo...

The only change is that all the chording macros (PRES, KEYS, etc.) accept a QMK layer number as the first parameter, and will only activate when that layer is active. The end result is similar to the "sticky bits" functionality, but without the side-effect of masking the signal of those bits.

This is my first foray into embedded programming stuff, so I can't promise I didn't do anything dumb in there. It seems to work for me, though!

Re: Show HN: Vim-Like Layer for Xorg and Wayland

#62
post #44
post #40

Earlier quoted context omitted.

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.

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.

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

#63
post #11
post #9

Earlier quoted context omitted.

Thanks for mentioning QMK [0], it's not something I've heard of before, and it seems like a huge step up from standard keyboard firmware. As far as I can tell only a small number of manufacturers officially support it, but at least one person seems to have made some progress getting a standard cooler master keyboard to run it [1]. [0] https://qmk.fm/ [1] https://github.com/qmk/qmk_firmware/tree/master/keyboards/bp...

It’s reasonably simple to port QMK (at least partially) to a new microcontroller. I have worked on Teensy 3.6 support for QMK, and plan to work on Teensy 4.x support as well.

I'm sorry to barge in,but I am in dire need of what you are working on. Could you share your progress or material, Sir?

Re: Show HN: Vim-Like Layer for Xorg and Wayland

#64
post #44
post #40

Earlier quoted context omitted.

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.

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.

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.

Post reply on HN