diff options
| author | xyz <gky44px1999@gmail.com> | 2021-10-17 15:39:52 -0700 | 
|---|---|---|
| committer | xyz <gky44px1999@gmail.com> | 2021-10-17 15:39:52 -0700 | 
| commit | bb83945623fa6cef6c195c98a7776f45974c006c (patch) | |
| tree | 69ee346d3f9c7fda5bcbd17ac755625929e733af /home/xyz/.config/sxhkd/sxhkdrc | |
| parent | 965e09f7e577dfde49bd23efc5ee7449e58a674a (diff) | |
move work-tree to /, delete mods files, addd cfgL
Diffstat (limited to 'home/xyz/.config/sxhkd/sxhkdrc')
| -rw-r--r-- | home/xyz/.config/sxhkd/sxhkdrc | 57 | 
1 files changed, 57 insertions, 0 deletions
| diff --git a/home/xyz/.config/sxhkd/sxhkdrc b/home/xyz/.config/sxhkd/sxhkdrc new file mode 100644 index 00000000..f84cf529 --- /dev/null +++ b/home/xyz/.config/sxhkd/sxhkdrc @@ -0,0 +1,57 @@ +Print +	ffmpeg -f x11grab -i "$DISPLAY" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid).png" + +alt + Print +	xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s "$1"x"$2" -i "$DISPLAY+$3,$4" -vframes 1 "$XDG_PICTURES_DIR/screenshots/$(time.uuid).png"' shell + +alt + shift + Print +	reco + +XF86Audio{RaiseVolume,LowerVolume,Mute} +	amixer set Master {5%+,5%-,toggle};\ +	kill -RTMIN+1 "$(cat "$XDG_CACHE_HOME/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% +alt + XF86AudioMute +	amixer set Capture toggle;\ +	kill -RTMIN "$(cat "$XDG_CACHE_HOME/pidofbar")" + +XF86Audio{Prev,Play,Next} +	playerctl {previous,play-pause,next} + +@Caps_Lock +	kill -RTMIN+3 "$(cat "$XDG_CACHE_HOME/pidofbar")" + +alt + y +	mpvy -s + +alt + shift + y +	mpvy -a + +alt + ctrl + y +	tsp mpvy -A -u "$(xsel -ob)" + +alt + w +	"$BROWSER" + +# not ideal +alt + shift +  w +	mullvad-exclude "$BROWSER" + +alt + s +	shufwall + +# not ideal +alt + v +	if mullvad status | grep -q 'Disconnect'; then mullvad connect -w; else killall qbittorrent; mullvad disconnect -w; fi;\ +	kill -RTMIN+4 "$(cat "$XDG_CACHE_HOME/pidofbar")" + +# not ideal +alt + q +	mullvad connect -w;\ +	kill -RTMIN+4 "$(cat "$XDG_CACHE_HOME/pidofbar")";\ +	qbittorrent + +# vim: ft=sh | 
