Skip to content

Commit

Permalink
Add media key example hotkeys to sxhkdrc
Browse files Browse the repository at this point in the history
  • Loading branch information
John A committed Sep 29, 2020
1 parent 853bb73 commit e529122
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@ super + @space
super + Escape
pkill -USR1 -x sxhkd

#
# media keys
#

# toggle microphone
XF86AudioMicMute
amixer set Capture toggle

# toggle volume
XF86AudioMute
amixer set Master toggle

# adjust volume
XF86Audio{Lower,Raise}Volume
amixer sset Master 2%{-,+}

# adjust brightness
{_, shift +}XF86MonBrightness{Down,Up}
echo $(( $(cat /sys/class/backlight/*/brightness) + 15 * {1, 5} * {-2,2})) > /sys/class/backlight/*/brightness

#
# bspwm hotkeys
#
Expand Down

0 comments on commit e529122

Please sign in to comment.