summaryrefslogtreecommitdiff
path: root/home/xyz/.config/sxhkd/sxhkdrc
blob: f84cf5299dc7c39c28d5fcbe0ea526dec5495734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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