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 keyTo specify an associated key, you can use 'xbindkeys --key' or
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 modifiers:
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+q 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
For more details, please see here
http://www.gnu.org/software/guile/guile.html Note: The guile configuration file is the prefered way if you have a non trivial configuration like for example double click, timed click or keys combinations. The defaults is ~/.xbindkeysrc.scm Use xbindkeys --defaults-guile for more details. And xbindkeys --defaults-guile > ~/.xbindkeysrc.scm to use this method.
killall -HUP xbindkeys
When HUP signal is send to xbindkeys, changes in $HOME/.xbindkeysrc takes effect only after moving mouse.
http://hocwp.free.fr/xbindkeys
Marcello Mathias Herreshoff for the guile support <marcello@hummer.stanford.edu>
$HOME/.xbindkeysrc The users configuration file. $HOME/.xbindkeysrc.scm The users configuration file in scheme style (if guile support have not been disabled).
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.