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

using keybindings without MOD #57

Open grafoo opened 7 years ago

grafoo commented 7 years ago

Is there a way to setup some of the keybindings without the need to use MOD as a "prefix"? a first try using { { (0x17), 'h', }, { focusleft, { NULL } } }, for <ALT>+<h> - please correct me if i'm wrong here - did not work.

martanne commented 7 years ago

You can try with { 0x1b, 'h', } ... i.e. <Escape> followed by your desired key. Depending on how you run dvtm you will have to make sure that for example your X terminal emulator doesn't interpret/consume the keys.

I'm not sure whether my suggestion works reliably (dvtm has some broken input logic related to escape sequences), in general it is probably a bad idea ...