If guile support have not been disabled:
The configuration file consists of commands names in double quotes, and associated keys in the next line.
Comments are started with a pound (#) and extend to the end of the line.
You can see a default file with the --defaults option or create a default $HOME/.xbindkeysrc with
'xbindkeys --defaults > $HOME/.xbindkeysrc'.
The format of a command line is:
"command to start &"
associated key
To specify an associated key, you can use 'xbindkeys --key' or
'xbindkeys --multikey' and put one of the two lines in the
configuration file.
A list of keys is in /usr/include/X11/keysym.h and in
/usr/include/X11/keysymdef.h.
The XK_ is not needed.
List of modifier:
Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
Mod3 (CapsLock), Mod4, Mod5 (Scroll).
The release modifier is not a standard X modifier, but you can
use it if you want to catch release events instead of press events.
By defaults, xbindkeys does not pay attention with the modifiers
NumLock, CapsLock and ScrollLock.
Add the lines above in the configuration file, if you want to pay
attention to them.
keystate_numlock = enable
keystate_capslock = enable
keystate_scrolllock= enable
# control+shift+d starts an xterm (it's a comment)
"xterm" control+shift + q # Menu key starts xbindkeys_show "xbindkeys_show" Menu # Control + mouse button 1 starts an xterm "xterm" Control + b:1 # Control+Shift+a release event starts rxvt "rxvt" release+control+shift + a # Control + mouse button 2 release event starts rxvt "rxvt" Control + b:2 + Release
The defaults is ~/.xbindkeysrc.scm
Use xbindkeys --defaults-guile for more details.
And xbindkeys --defaults-guile > ~/.xbindkeysrc.scm to use this methode.
killall -HUP xbindkeys
When HUP signal is send to xbindkeys, changes in $HOME/.xbindkeysrc takes effect only after moving mouse.
AUTHOR
Philippe Brochard <hocwp@free.fr>Marcello Mathias Herreshoff for the guile support <FILES
$HOME/.xbindkeysrc The users configuration file. $HOME/.xbindkeysrc.scm The users configuration file in scheme style (if guile support have not been disabled).
SEE ALSO
xbindkeys_show Utility for showing the actual keybinding with xbindkeys xmodmap(1x) Utility for modifying keymap & button mappings in X. xev(1x) Print contents of X events. /usr/include/X11/keysymdef.h X11 KeySym definitions.