1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-22 16:03:50 +01:00

Add xbindkeys config and install script

This commit is contained in:
Valentin Brandl 2017-02-11 20:47:39 +01:00
parent 0b17a0c3bd
commit 2b33b79796
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
2 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,3 @@
- link:
~/.xbindkeysrc: tools/misc/xbindkeys/xbindkeysrc
# vim: set filetype=yaml ts=4 sw=4 tw=0 et :

View File

@ -0,0 +1,96 @@
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# 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
# Increase volume
"amixer sset Master 5%+; pkill -RTMIN+10 i3blocks"
XF86AudioRaiseVolume
# Decrease volume
"amixer sset Master 5%-; pkill -RTMIN+10 i3blocks"
XF86AudioLowerVolume
# Mute/unmute
"amixer sset Master toggle; pkill -RTMIN+10 i3blocks"
XF86AudioMute
# Play/pause
"mpc toggle"
XF86AudioPlay
"firefox"
XF86HomePage
"thunderbird"
XF86Mail
"/usr/bin/qalculate-gtk"
XF86Calculator
#"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
##################################
# End of xbindkeys configuration #
##################################
# vim: set filetype=conf ts=8 sw=4 tw=120 noet :