summaryrefslogtreecommitdiff
path: root/.config/sxhkd/sxhkdrc
blob: 5d7d0c531783428469aac6cbd589d68a991dbf8c (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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#           _     _       _
#          | |   | |     | |
#  _____  _| |__ | | ____| |
# / __\ \/ / '_ \| |/ / _` |
# \__ \>  <| | | |   < (_| |
# |___/_/\_\_| |_|_|\_\__,_|
#
#

# Commands are procedurally added to the manual.

# To do so, for every command, add a line starting
# with `##` which has a generic description of what
# the command does.

# The pdf will associate it with the binding BELOW IT.

# `#` followed by a space will be ignored and treated
# as regular comments.

# `#-#` at the beggining of a line will be converted to
# a header in the manual.

#-# dwm #-#
## Quit dwm
super + shift + q
	dwmc quit
## Quit Current/focused App
super + q
  quitapp
## Toggle the dwm bar
super + b
	dwmc togglebar
## Change layout to {tiling, monocle}
super + {_,shift} + t
	dwmc setlayoutex {0,2}
## Change layout to {grid, floating}
super + {_,shift} + g
	dwmc setlayoutex {5,1}
## Change layout to {centeredmaster, floatingcenteredmaster}
super + {_,shift} + m
	dwmc setlayoutex {3,4}
## Make window fullscreen
super + f
	dwmc fullscreen
## Make current window floating
super + shift + space
	dwmc togglefloating
## Cycle up and down the window stack (change focus)
super + {j,k}
	dwmc focusstack {+,-}1
## Rotate clockwise/counterclockwise the window stack
super + shift + {j,k}
	dwmc rotatestack {+,-}1
## Move current window up/down the stack
super + shift + {h,l}
	dwmc movestack {-,+}1
## Change focus to/swap the master window
super + {_, shift} + s
	dwmc {focusmaster,  zoom}
## Add/Remove windows from the master stack
super + {_,shift} + i
	dwmc incnmaster {+,-}1
## Increase/Decrease master stack width
super + {h,l}
	dwmc setmfact {-,+}0.05
## Toggle view next tag
super + Tab
	dwmc view
## Cycle forward/backward through monitor focus
super + {comma,period}
	dwmc focusmon {-,+}1
## Move current window to previous/next monitor
super + shift + {comma,period}
	dwmc tagmon {-,+}1
## Set the master monitor to be the previous/next monitor
super + alt + {comma,period}
	dwmc setmastermon {-,+}1
## View all tags
super + 0
	dwmc viewall
## Move current window to tag {1-9}
super + shift + {1-9}
	dwmc tagex {0-8}
## Only view the tag {1-9}
super + {1-9}
	dwmc viewex {0-8}
## Toggle the visibility tag {1-9}
super + alt + {1-9}
	dwmc toggleviewex {0-8}
## Toggle (pin/unpin) the current window on tag {1-9}
alt + {1-9}
	dwmc toggletagex {0-8}
## Pin current window to all tags
super + shift + 0
	dwmc tagall
# ## Decrease/increase gaps
# super + {minus, shift + equal}
# 	dwmc setgaps {-,+}1
# ## Set gaps to zero
# super + equal
# 	dwmc setgaps 0

#-#   Miscellaneous #-#
## Lock Screen
super + BackSpace
    slock
## Quit Current App
super + q
	kill -15 `xdotool getwindowfocus getwindowpid`
## Change Keyboard Layout
alt + Return
	layouttoggle
## Toggle Compositor
super + c
		killall picom || setsid picom
## Open this manual
super + alt + shift + h
    manualgen
## Start colorpicker (Jack12816/colorpicker)
super + shift + c
		colorhandler

#-# Standard Applications #-#
## Terminal window
super + Return
    $TERMINAL
## Default Browser
super + w
    $BROWSER
## Quickly Search DuckDuckGo
super + shift + w
    ducksearch
## TUI Email Client (neomutt)
super + e
    kill -46 $(pidof dwmblocks) && killall neomutt || $TERMINAL -e neomutt && kill -46 $(pidof dwmblocks)

#-#   Floating Apps/Utilities   #-#
## Network Manager
XF86WLAN
    killall nmtui || dropdowntoggle network nmtui
## TUI Audio Mixer (pulsemixer)
super + p
    killall pulsemixer || dropdowntoggle bluetooth pulsemixer
## TODOs (orgmode-nvim)
super + space
    dropdowntoggle orgmode nvim +"Neorg index"
## Terminal Calculator
super + a
    dropdowntoggle calc tmux-r
## Terminal Shell
super + shift + a
    dropdowntoggle shell tmux-shell
## Terminal remote session (ssh)
super + r
    sshchoose

#-#   Prompts (dmenu)   #-#
## Application Launcher
super + d
    j4-dmenu-desktop
## Display Layout Selector
super + shift + d
    displayselect
## Emoji & Font-Awesome Selector
alt + grave
    emoji-copy
## Mount/Unmount Devices Utility
alt + {_,shift} + m
    { mountmenu, umountmenu }
## Recording Utility
alt + r
    recordmenu kill || recordmenu
## Start SSH session
alt + s
		pickssh
## Select bright or dark .Xresources theme
alt + Escape
	theme="$(ls $HOME/.config/Xresources/ | dmenu)" && cat "$HOME/.config/Xresources/$theme" | xrdb -load

#-#   PrintScreen Utilities   #-#
## All displays
Print
    scrot && notify-send -a " Screenshot" "Stitched screenshot completed"
## Current window
alt + Print
    scrot -q 100 -u -z && notify-send -i "$HOME/.fonts/svg/image.svg" -a " Screenshot" "Window screenshot completed"
## Cursor Selection
super +  Print
    scrot -q 100 -s -z && notify-send -i "$HOME/.fonts/svg/image.svg" -a " Screenshot" "Selection screenshot completed"

#-#   Special Keys   #-#
## Control Network Manager
XF86AudioMedia
    killall nmtui || dropdowntoggle network nmtui
## Control Bluetooth
shift + XF86AudioMedia
    killall bluetuith || dropdowntoggle bluetooth bluetuith
## Increase/decrease Volume
{XF86AudioRaiseVolume, XF86AudioLowerVolume}
    volumectl 5 {+,-}
## Max-Out Volume
shift + XF86AudioRaiseVolume
    volumectl 100
## Set Volume to 5 percent
shift + XF86AudioLowerVolume
    volumectl 5
## Mute Audio
XF86AudioMute
	 volumectl mute
## Increase/decrease Brightness
{XF86MonBrightnessUp, XF86MonBrightnessDown}
    backlightctl -{i,d} 5
## Max-Out Brightness
shift + XF86MonBrightnessUp
    backlightctl -s 100
## Set Brightness to 5 percent
shift + XF86MonBrightnessDown
    backlightctl -s 0

#-# Music Controls (using `playerctl`) #-#
## Next/Previous Song (using playerctl)
super + {bracketright, bracketleft}
		playerctl {next, previous}
## Higher/Lower music volume (using pla)
super + shift + {bracketright, bracketleft}
		playerctl volume 5 {+, -}
## Toggle music playback
super + backslash
		playerctl play-pause