martanne / dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
MIT License
848 stars 105 forks source link

ALT as mod key. #63

Open seba2044 opened 7 years ago

seba2044 commented 7 years ago

Is it possible to use ALT as MOD key (not working in my st+dvtm) ???

ghost commented 7 years ago

You can have a look at #39 which is highly related.

methuselah-0 commented 6 years ago

A workaround is to rebind ALT-key to have same effect as CONTROL (still ALT- 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

ezequiel-garzon commented 6 years ago

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.

GReagle commented 3 years ago

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.