From 4b84e3a3d6b2e2d0bc2240e9d60b1b592baf7f88 Mon Sep 17 00:00:00 2001 From: dx Date: Sat, 6 Jun 2020 19:33:54 +0100 Subject: ~super + numbers -> functionk eys Using the function keys, which aren't used usually, to: - set my standard volume - controlling mpd tracks - setting mpc volume directly --- SXHkD/.config/sxhkd/sxhkdrc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'SXHkD/.config/sxhkd/sxhkdrc') diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc index 05db3a2..382cb7e 100644 --- a/SXHkD/.config/sxhkd/sxhkdrc +++ b/SXHkD/.config/sxhkd/sxhkdrc @@ -20,25 +20,25 @@ hyper + l hyper + d $HOME/.local/scripts/background -super + 8 - mpc -q toggle - -super + {9,0} - mpc -q {prev,next} +# Music and volume +F{6,7,8} + mpc -q {prev,toggle,next}; \ + pkill -RTMIN+11 dwmblocks XF86Audio{Prev,Next} - mpc -q {prev,next} + mpc -q {prev,next}; \ + pkill -RTMIN+11 dwmblocks -super + {n,m} - pactl set-sink-volume 0 {-,+}5%; \ - $HOME/.local/scripts/refresh_bar; +{_,hyper + }F{9,10} + {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%; \ + pkill -RTMIN+12 dwmblocks -XF86Audio{Lower,Raise}Volume - pactl set-sink-volume 0 {-,+}10%; \ - $HOME/.local/scripts/refresh_bar; +{_,hyper + }XF86Audio{Lower,Raise}Volume + {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%; \ + pkill -RTMIN+12 dwmblocks XF86MonBrightness{Down,Up} xbacklight {-,+}15 -super + {o,p} +F{3,4} xbacklight {-,+}15 -- cgit v1.2.3-13-gbd6f