Here is the plan:
- bind the currently unassigned keycodes to unused keysyms (e.g. F13, F14, ...)
- use xbindkeys or khotkeys (KDE) to execute commands (scripts, DCOP, ...) when those keys are pressed
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
Use your favorite text editor (vim, emacs, kate, nano, whatever) and put the corresponding lines in a file named .Xmodmap (note the dot and the capital X) under your home directory, like this:
keycode 160 = F13
keycode 174 = F14
keycode 176 = F15
...
For more info, have a look at /dev/loki: Mapping unsupported keys with xmodmap

No comments:
Post a Comment