Xbindkeys
From wikinotes
Xbindkeys is a higher level abstraction overtop of xmodmap.
It allows you to bind keys to bash one-liners.
Locations
~/.xbindkeysrc
desired mappings
Usage
General
xbindkeys --multikey # capture keycode for multi-key sequence xbindkeys -k # capture keycode for key xbindkeys # activate mappings from ~/.xbindkeysrcBinding Keys
touch ~/.xbindkeysrc xbindkeys --multikey # window will popup to catch keys. Press keysequence.--- Press "q" to stop. --- "(Scheme function)" m:0xc + c:43 Control+Alt + h "(Scheme function)" m:0xc + c:64 Control+Alt + Alt_L "(Scheme function)" m:0x4 + c:37 Control + Control_L "(Scheme function)" m:0x0 + c:24 qChoose your keysequence of interest (in this case Control+Alt+h),
paste it into your~/.xbindkeysrc
, replacing"(Scheme function)"
with your command.
xbindkeys
to activate keybindings for current x-session.# ~/.xbindkeysrc "tmux select-pane -L" m:0xc + c:43 Control+Alt + h