From e69643056cf600a7a48968ae845941f9731bc83e Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 5 Sep 2021 18:04:16 -0700 Subject: prepare for sbar --- .config/sxhkd/sxhkdrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 3ac31ee6..632354f1 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -4,13 +4,15 @@ alt + Print ffmpeg -f x11grab -i "$DISPLAY" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid)".png XF86Audio{RaiseVolume,LowerVolume,Mute} - amixer set Master {5%+,5%-,toggle} + amixer set Master {5%+,5%-,toggle};\ + kill -RTMIN+1 "$(cat ~/.cache/pidofbar)" # for pulseaudio, master volume affects capture volume too? # my laptop built-in microphone capture volume is really low # so I want to keep capture volume always 100% shift + XF86AudioMute - amixer set Capture toggle + amixer set Capture toggle;\ + kill -RTMIN "$(cat ~/.cache/pidofbar)" alt + y mpvsel || notify-send "mpvsel failed" @@ -23,3 +25,6 @@ alt + s XF86Audio{Prev,Play,Next} playerctl {previous,play-pause,next} + +@Caps_Lock + kill -RTMIN+3 "$(cat ~/.cache/pidofbar)" -- cgit v1.2.3-70-g09d2