-
Notifications
You must be signed in to change notification settings - Fork 36
Bind Missing Keys
wulvyrn edited this page Aug 18, 2016
·
2 revisions
Use xbindkeys and xvkbd to add functions: https://wiki.archlinux.org/index.php/Xbindkeys
examples for .xbindkeysrc
# Backward, Forward, Refresh & Full Screen is just for web browser
"xvkbd -xsendevent -text "\A\[Left]""
m:0x0 + c:67
F1
# Forward
"xvkbd -xsendevent -text "\A\[Right]""
m:0x0 + c:68
F2
# Refresh
"xvkbd -xsendevent -text "\Cr""
m:0x0 + c:69
F3
# Full Screen
"xvkbd -xsendevent -text "\[F11]""
m:0x0 + c:70
F4
# F5 Print Screen / Window
"scrot -e 'mv $f ~/shots/'"
m:0x0 + c:71
F5
"scrot -u -e 'mv $f ~/shots/'"
m:0x8 + c:71
Alt + F5
# F6 - F7 Brightness
"brightness --decrease"
m:0x0 + c:72
F6
"keyboard_led --decrease"
m:0x8 + c:72
Alt + F6
"brightness --increase"
m:0x0 + c:73
F7
"keyboard_led --increase"
m:0x8 + c:73
Alt + F7
# F8 - F10 Audio Keys
# could set alt F8 - F10 for mic
"amixer -q -D pulse sset Master toggle"
m:0x0 + c:74
F8
"amixer -q -D pulse sset Master 5%-"
m:0x0 + c:75
F9
"amixer -q -D pulse sset Master 5%+"
m:0x0 + c:76
F10
# numpad keys
"xvkbd -xsendevent -text '\[Delete]'"
Alt + BackSpace
"xvkbd -xsendevent -text '\[End]'"
Alt + Right
"xvkbd -xsendevent -text '\[Home]'"
Alt + Left
"xvkbd -xsendevent -text '\[Page_Down]'"
Alt + Down
"xvkbd -xsendevent -text '\[Page_Up]'"
Alt + Up
set to suspend vice poweroff
# power key
# for this to work
# /etc/systemd/logind.config
# HandlePowerKey=ignore
"systemctl suspend"
m:0x0 + c:124
XF86PowerOff