xbindkeys is a program that associates keys or mouse buttons to shell commands under X. After a little configuration, it can start many commands with the keyboard (e.g. control+alt+x starts an xterm) or with the mouse buttons.
| Tags | Desktop Environment |
|---|---|
| Licenses | GPL |
| Operating Systems | POSIX Linux |
| Implementation | C Tcl |
Recent releases


Changes: A listen loop was added in the main loop. This fixes a bug where, in the previous version, a keypress was needed to reload the configuration file after a keybinding change. Now one can edit the configuration file and keybindings are automatically updated after each save.


Changes: Correction of typos in the man page. An emphasis is made on the documentation about the Guile/Scheme configuration file (the preferred way for non-trivial configuration, and far more powerful than the default configuration file).


Changes: Better Guile configuration with autotools. Some minor compilation warnings have been fixed.


Changes: This version enables full access to the xbindkeys internal from the Guile scheme configuration file. A grabbed key can start a shell command or run a scheme function. This enables you to do more powerful things inside xbindkeys without the need for an external shell script (like double click, timed double click, or key combinations).


Changes: A minor change in xbindkeys.spec. A small English correction in warnings. Configuration files are reloaded on the fly when they have changed, so there is no more need to send a HUP signal to reload them. Minor guile bugfixes.
- All comments
Recent commentsRe: Great! What about 'NoSymbols'?
NoSymbols appears when there's no keysym name mapped to keycode.
You can assign a keysymname to keycode with xmodmap.
Example for my keyboard :
xmodmap -e "keycode 222 = XF86PowerOff"
xmodmap -e "keycode 223 = XF86Sleep"
xmodmap -e "keycode 227 = XF86WakeUp"
Put this commands lines in your ~/.xsession or elsewhere
teyr're executed.
Keysymname can be found in X11/keysymdef.h or in
XRoot/lib/X11/XKeysymDB or man xmodmap.
Great! What about 'NoSymbols'?
Excellent - just what I needed when a friend of mine brought
me a replacemente US keyboard (Can't get US keycap kbd in
Argentina) with all the extra winkeys. Be sure to check the
example layouts on the page - saves a lot of work.
The last example was the one that fitted my case best,
so I adapted that one. Several key were marked 'NoSymbol' -
why is that? One is the 'Standby' or 'Sleep' key. I recognized
them by the scan codes I'd obtained through xev.
Re: Useful program
In version 1.3.0 and later, xbindkeys does not pay any more attention to NumLock, CapsLock and ScrollLock modifiers.
Re: Useful program
Well, if you have numlock enabled, you have to specifie mod2 modifier in the key line.
In all cases, you can identify what key combination you have to use with --key or --multikey options.
Useful program
This is a great program, especially for the keyboards with extra keys like volume adjustments, etc.
The documentation was a little weak, but after
a little trial and error I figured out what everything in the config file meant. It was originally
not clear that every defined keypress also depended on the state of numlock, capslock, etc