ALT as mod key.
seba2044 opened this issue · comments
Is it possible to use ALT as MOD key (not working in my st+dvtm) ???
You can have a look at #39 which is highly related.
A workaround is to rebind ALT-key to have same effect as CONTROL (still ALT-<some_key> and not just ALT but perhaps still preferred)
Try:
showkey
press CONTROL key
the keycode output
then:
showkey -s
press ALT-key
scancode output
Then use setkeycode [scancode] [keycode] with
setkeycode [scancode output] [the keycode output]
which will rebind ALT-key to the same effect as CONTROL.
Reference: https://jlk.fjfi.cvut.cz/arch/manpages/man/setkeycodes.8.en
Thank you for such an amazing project! This possibility would be icing on the icing of a delicious cake, and would make it feel even closer to dwm.
You could try a re-mapping as a work-around. For example remap Alt-a (or whatever key you want) to send a ^g. How to do the remapping depends on your environment. I can try to help you if you'd like. If you are using X11 there are several utilities that will allow a remapping such as xmodamp. I use X11 and do some keyboard re-mappings. If you are using Wayland or Mac OS then that is different. Also, your terminal program might be able to do the re-mapping, depending on which terminal program.