From e52912299b750aad1416977b3ea6f46e05687edd Mon Sep 17 00:00:00 2001 From: John A Date: Mon, 28 Sep 2020 22:49:24 -0400 Subject: [PATCH] Add media key example hotkeys to sxhkdrc --- examples/sxhkdrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/examples/sxhkdrc b/examples/sxhkdrc index 7528afbf..c77149f3 100644 --- a/examples/sxhkdrc +++ b/examples/sxhkdrc @@ -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 #