[Feature Request] Add the possibility of defining keychords
See original GitHub issueOne of my favorite features in StumpWM (my current X11 WM) and Emacs is the ability of defining keychords (although their definition in StumpWM is currently a bit awkward). Instead of every keybind immediately triggering something when pressed, some give access to extra keybinds. Qtile also allows for keychords, and i3 awkwardly does too through binding modes.
For instance, the keybind s-SPC a b
reflects the keypress Super+Space
, then a
, then b
, while the keybind s-SPC a g
differs only by the last keypress.
This allows for a much wider amount of available keybinds and for much better mnemonics in the user’s configuration --the first keychord above is s-SPC
the common keybind for most stuff, a
for applications, and b
for browser while the latter differs with g
for GIMP.
It would be great if such a feature could be added to newm, I believe it would make it much more flexible, and it would help improve the mnemonics of its keybinds.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
@CRAG66 I think this should be its own issue rather than being discussed here. And judging from the file jbuchermn linked, it seems it may be already possible with Mod1, Mod2, and mod3. Try the following lines in
key_bindings()' and see which one works (and comment the original line as I did) ,---- | # ("M-c", lambda: layout.move(-1, 0)), | ("1-c", lambda: layout.move(-1, 0)), | ("2-c", lambda: layout.move(-1, 0)), | ("3-c", lambda: layout.move(-1, 0)),
----Also, not related to the issue, but I believe you wanted to say “left-handed”, not “left-wing”, the latter is a political term 😄
– Lucien “Phundrak” Cartier-Tilet
https://phundrak.com (Français)
https://phundrak.com/en (English)
Sent from GNU/Emacs
Closing this now.