aboutsummaryrefslogtreecommitdiff
path: root/.config/sxhkd/sxhkdrc
blob: 9a35071968e84b365d64569cfbbf5dca699c8bd4 (plain) (blame)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Basics
super + Return
	$TERMINAL
super { , + shift}  +  f
	{$BROWSER, dmenu-browser}
super + d
	dmenu_run -i

# Notifications
super + grave
	dunstctl history-pop
super + shift + asciitilde
	dunstctl close-all

# Other applications
super + r
	$TERMINAL -n 'ncmpcpp' -e 'ncmpcpp'
super + m
	$TERMINAL -n 'aerc' -e 'aerc'
super + g
	gcolor3
super + v
	xclip -o -selection clipboard | xargs "$(command -v io.mpv.Mpv mpv | head -1)"

# Scripts
super + shift + c
	dmenu-compress
super + i
	dmenu-cpu
super + shift + i
	dmenu-fan
super + x
	dmenu-logout
Print
	dmenu-screenshot
super + t
	dmenu-messenger
super + o
	dmenu-newsboat
super + u
	dmenu-unicode
super + shift + m
	systemctl start --user mbsync-update.service

# Audio
super + alt + ctrl + j
	dmenu-audio

# Audio - Vim bindings
super + alt + {j,k}
	wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%{-,+} -l 1; \
	pkill -RTMIN+1 dwmblocks
super + shift + alt + {j,k}
	wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; \
	pkill -RTMIN+1 dwmblocks
super + shift + {less,greater}
	mpc {prev,next}; \
	pkill -RTMIN+1 dwmblocks
super + a
	mpc toggle; \
	pkill -RTMIN+1 dwmblocks

# Audio - XF86 bindings
XF86Audio{LowerVolume,RaiseVolume}
	wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%{-,+} -l 1; \
	pkill -RTMIN+1 dwmblocks
XF86AudioMute
	wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; \
	pkill -RTMIN+1 dwmblocks
XF86Audio{Prev,Next,Play,Pause,Stop}
	mpc {prev,next,play,pause,stop}; \
	pkill -RTMIN+1 dwmblocks

# Backlight
super + alt + {h,l}
	brightnessctl set 1%{-,+} -e -n 1; \
	dunstify -u low -r "3001" "Brightness level: $(brightnessctl -m | awk -F',' '\{ print $4 \}')"
super + alt + m
	dmenu-extbrightness
XF86MonBrightness{Down,Up}
	brightnessctl set 1%{-,+} -e -n 1; \
	dunstify -u low -r "3001" "Brightness level: $(brightnessctl -m | awk -F',' '\{ print $4 \}')"
super + { , + shift} + n
	redshift {-O 3500 -b 0.8,-x}