XBindKeys(1)
π XBindKeys π
ok so bestie, welcome to XBindKeys(1) β the General Commands Manual page for a lil program that's lowkey a keyboard sorcerer. it lives in the X world and it's here to make your keys do things. buckle up π
β¨ NAME β¨
xbindkeys β a grabbing keys program for X π«Ά
β¨ SYNOPSIS β¨
xbindkeys [ options ]
β¨ DESCRIPTION β¨
okay so here's the tea: XbindKeys is a program that grabs key and mouse button events in X and then starts associated shell commands. that's it. that's the whole vibe. you press a thing, it runs a thing. main character energy fr fr π
β¨ COMMAND LINE OPTIONS β¨
the available command line options are literally as follows, no cap:
-d,--defaultsβ Print a default rc file π-f,--fileβ Use an alternative rc file π¦-h,--helpβ Short help on options plus version/author info. (yes bestie, the receipts β¨)-X,--displayβ Set X display to use π-v,--verboseβ More information onxbindkeyswhen it runs π-k,--keyβ Identify one key pressed (useful for configuration) π-mk,--multikeyβ Identify multi key pressed (useful for configuration) ππ-g,--geometryβ size and position of window with-k|-mkoption πͺ-n,--nodaemonβ don't start as daemon π βοΈ
and if guile support has not been disabled, you also get these two cuties:
-dg,--defaults-guileβ Print a default guile configuration file π§-fg,--file-guileβ Use an alternative guile configuration file π
β¨ XBINDKEYSRC β¨
the XBindKeys default configuration file is at $HOME/.xbindkeysrc, and it's used only for one user. very personal, very you π
the configuration file consists of commands in double quotes, and associated keys in the next line. that's the whole format bestie, it's giving minimalism.
Comments are started with a pound (#) and extend to the end of the line. π
you can see a default configuration with --defaults β¨
β¨ KEYSYMS β¨
so the program expects combinations of keysyms to be used by using plus (+) characters to combine them together. stacking keys like it's a fit check π
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. literally just copy paste, iykyk π
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. Modifiers are not case sensitive. β
By defaults, xbindkeys does not pay attention to the modifiers NumLock, CapsLock and ScrollLock. Add the lines below in the configuration file if you want to pay attention to them. π
keystate_numlock = enable
keystate_capslock = enable
keystate_scrolllock= enable
lowkey note that last one has no space before the =. that's not me being sloppy, that's the actual line. copy it exactly bestie π«Ά
β¨ EXAMPLES β¨
here's where it gets fun. feast your eyes ππ
# control+shift+q starts xterm
"xterm"
control+shift + q
# Menu key starts xbindkeys_show
"xbindkeys_show"
Menu
# Control + mouse button 1 starts 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
β¨ SCHEME CONFIGURATION STYLE β¨
a scheme configuration can be used if guile support has not been disabled. the standard configuration is loaded only if the scheme configuration is not available. so it's like, scheme takes priority, periodt. π§
for more details, please see here:
http://www.gnu.org/software/guile/guile.html
Note: The guile configuration file is prefered for non trivial configurations, for example double click, timed click or key combinations. (yes "prefered" is spelled like that in the original, i'm not gonna fix it, that's not my job π )
the default location is ~/.xbindkeysrc.scm πΈ
use xbindkeys --defaults-guile for more details. π
and xbindkeys --defaults-guile > ~/.xbindkeysrc.scm to use this method. π
β¨ NOTE β¨
xbindkeys reloads the configuration file if modified. send a HUP signal to force reloading:
killall -HUP xbindkeys
when aHUPsignal is sent toxbindkeys, changes take effect only after moving the mouse. yes bestie, you gotta wiggle the mouse. it's a whole ritual πβ¨
β¨ BUGS β¨
if you find a bug, please send mail to <xbindkeys-devel@nongnu.org> π§ (be nice, they're doing their best π)
β¨ HOMEPAGE β¨
https://www.nongnu.org/xbindkeys/
β¨ AUTHOR β¨
- Philippe Brochard
<hocwp@free.fr>π - Marcello Mathias Herreshoff for guile support
<marcello@hummer.stanford.edu>π§
β¨ FILES β¨
$HOME/.xbindkeysrcβ The users configuration file. π$HOME/.xbindkeysrc.scmβ The users configuration file in scheme (if guile support has not been disabled). π¦
β¨ SEE ALSO β¨
xbindkeys_showβ Utility for showing the actual keybinding withxbindkeysπ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. π
and that's the whole page bestie!! this one's from the 3rd Berkeley Distribution, dated Tue Apr 19 2014, and it's XBindKeys(1) in the manual set. go forth and bind some keys, you absolute icon π
β¨π
π¦ where this page comes from
- debian bookworm: xbindkeys 1.8.7-2 Β· GPL-2.0-or-later
- debian trixie: xbindkeys 1.8.7-2 Β· GPL-2.0-or-later
- ubuntu jammy: xbindkeys 1.8.7-1 Β· GPL-2.0-or-later
- ubuntu noble: xbindkeys 1.8.7-2 Β· GPL-2.0-or-later
- ubuntu questing: xbindkeys 1.8.7-2
- ubuntu resolute: xbindkeys 1.8.7-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: xbindkeys 1.8.7-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms