# For the benefit of emacs users: -*- shell-script -*- ########################### # xbindkeys configuration # ########################### # # Version: 1.8.7 # # If you edit this file, do not forget to uncomment any lines # that you change. # The pound(#) symbol may be used anywhere for comments. # # To specify a key, you can use 'xbindkeys --key' or # 'xbindkeys --multikey' and put one of the two lines in this file. # # The format of a command line is: # "command to start" # associated key # # # 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. # Uncomment the lines above if you want to pay attention to them. #keystate_numlock = enable #keystate_capslock = enable #keystate_scrolllock= enable # Examples of commands: #"xbindkeys_show" # control+shift + q ## set directly keycode (here control + f with my keyboard) #"xterm" # c:41 + m:0x4 ## specify a mouse button #"xterm" # control + b:2 #"xterm -geom 50x20+20+20" # Shift+Mod2+alt + s # ## set directly keycode (here control+alt+mod2 + f with my keyboard) #"xterm" # alt + c:0x29 + m:4 + mod2 # ## 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 # My shortcuts # ============ # Modifier scheme (order: Control,Shift,Alt(Mod1),Super(Mod4)): # * app-specific: # * Control, Control+Shift # * Linux & WM (dwm): # * Alt, Control+Alt, Shift+Alt # * user-defined: # * Mod4 (application launch & audio control) # * Shift+Mod4 (brightness control & audio control) # * Control+Mod4 (unused) # * Alt+Mod4 (unused) # * unused (4 finger shortcuts): # * Control+Shift+Alt, Control+Shift+Mod4, Control+Alt+Mod4, Shift+Alt+Mod4 # * unused (5 finger shortcut): # * Control+Shift+Alt+Mod4 # System # ------ "sudo shutdown 0" Control+Shift+Alt+Mod4 + s "sudo reboot" Control+Shift+Alt+Mod4 + r "slock" Control+Alt + l # Audio & brightness control # Ref.: # https://wiki.archlinux.org/title/Backlight "pactl set-sink-volume '@DEFAULT_SINK@' '+10%'" Mod4 + k # XF86AudioRaiseVolume "pactl set-sink-volume '@DEFAULT_SINK@' '-10%'" Mod4 + j # XF86AudioLowerVolume "pactl set-sink-mute '@DEFAULT_SINK@' 'toggle'" Shift+Mod4 + m # XF86AudioMute "pactl set-source-mute @DEFAULT_SOURCE@ toggle" Mod4 + m # Maybe it'd be a good idea to remove the sudo from here, idk "sudo xbacklight -inc 10" Shift+Mod4 + k # XF86MonBrightnessUp "sudo xbacklight -dec 10" Shift+Mod4 + j # XF86MonBrightnessDown # dwm # -------------------- "dmenu-webshortcuts.sh" Alt + w "dmenu-emojicopy.sh" Alt + e # Launch applications (super + key) # --------------------------------- "st -e tmux" Mod4 + Return "st" Shift+Mod4 + Return "pcmanfm" Mod4 + e "firefox" Mod4 + w "thunderbird" Mod4 + t "goldendict" Mod4 + g "zeal" Mod4 + h # Media control # ------------- "playerctl play-pause" Mod4 + Down # XF86AudioPlay "playerctl stop" Mod4 + Up # XF86AudioStop "playerctl next" Mod4 + Right # XF86AudioPrev "playerctl previous" Mod4 + Left # XF86AudioNext ################################## # End of xbindkeys configuration # ##################################