-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsxhkdrc
347 lines (256 loc) · 8.51 KB
/
sxhkdrc
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
#################################################################
# KEYBOARD BINDINGS FOR ANY TWM
#################################################################
#################################################################
# SUPER + FUNCTION KEYS
#################################################################
# Navegador Web
super + F1
google-chrome-stable
# Visual Studio Code
super + F2
code
# Vlc
super + F3
vlc --video-on-top
# Rofi
super + d
rofi -show drun
#################################################################
# SUPER + ... KEYS
#################################################################
# Htop
super + h
urxvt 'htop task manager' -e htop
# Archlinux Logout
super + x
archlinux-logout
# Rofi theme selector
super + r
rofi-theme-selector
# Pavucontrol
super + v
pavucontrol
# Alacritty
super + Return
alacritty
#################################################################
# SUPER + SHIFT KEYS
#################################################################
# File-Manager
super + shift + Return
ranger
# Dmenu
super + shift + d
dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'
# Rofi
super + d
~/.config/bspwm/launcher/launcher.sh
# Reload Sxhkd:
super + shift + s
pkill -USR1 -x sxhkd
#################################################################
# CONTROL + ALT KEYS
#################################################################
#################################################################
# ALT + ... KEYS
#################################################################
#################################################################
# CONTROL + SHIFT KEYS
#################################################################
#################################################################
# SCREENSHOTS
#################################################################
# Scrot
Print
scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
# Screeenshooter
ctrl + Print
xfce4-screenshooter
#################################################################
# FUNCTION KEYS
#################################################################
#################################################################
# MULTIMEDIA KEYS
#################################################################
#Raises volume
XF86AudioRaiseVolume
amixer -D pulse set Master 10%+
#Lowers volume
XF86AudioLowerVolume
amixer -D pulse set Master 10%-
#Mute
XF86AudioMute
amixer -D pulse set Master 1+ toggle
#PLAY
XF86AudioPlay
playerctl play-pause
#Next
XF86AudioNext
playerctl next
#previous
XF86AudioPrev
playerctl previous
#Stop
XF86AudioStop
playerctl stop
#Brightness up
XF86MonBrightnessUp
xbacklight -inc 10
#Brightness down
XF86MonBrightnessDown
xbacklight -dec 10
#########################
# POLYBAR #
#########################
# Hide polybar
super + y
polybar-msg cmd toggle
#################################################################
# SUPER + KEYS
#################################################################
#Toggle fullscreen of window
super + f
bspc node --state \~fullscreen
# Toggle pseudo tiling of window
super + p
bspc node --state \~pseudo_tiled
#kill
super + q
bspc node -c
#################################################################
# SUPER KEYS
#################################################################
#Focus selected desktop
super + Tab
bspc desktop -f '^{1-9,10}'
# Increase/decrease window gap on focused desktop
super + bracket{left,right}
bspc config -d focused window_gap $((`bspc config -d focused window_gap` {-,+} 5 ))
# set the window state
super + space
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# Move focus to other monitor
super + BackSpace
bspc monitor -f next
#################################################################
# SUPER + ALT KEYS
#################################################################
# Move floating window
super + alt + {_,shift + }{Left,Down,Up,Right}
~/.config/bspwm/scripts/move-window {_,edge-}{west,south,north,east}
#################################################################
# SUPER + CONTROL KEYS
#################################################################
# Cancel preselection
super + ctrl + space
bspc node --presel-dir cancel
#################################################################
# SUPER + SHIFT KEYS
#################################################################
#Reload bspwm
super + shift + r
~/.config/bspwm/bspwmrc
#kill
super + shift + q
bspc node -c
#Logout
#super + shift + x
# bspc quit
# Focus/swap windows by direction
super + {_,shift + }{h,j,k,l}
bspc node --{focus,swap} {west,south,north,east}
# Flip layout vertically/horizontally
super + {_,shift + }a
bspc node @/ --flip {vertical,horizontal}
# Move focused window to other monitor
super + shift + Left
bspc node -m next --follow
# Move focused window to other monitor
super + shift + Right
bspc node -m next --follow
# Move focused window to other monitor
super + shift + Up
bspc node -m next --follow
# Move focused window to other monitor
super + shift + Down
bspc node -m next --follow
#################################################################
# SUPER + CONTROL KEYS
#################################################################
# Focus/swap windows by direction
super + ctrl + {Left,Down,Up,Right}
bspc node --{focus} {west,south,north,east}
# Contract tiled space
super + ctrl + {h,j,k,l}
bspc node {@east -r -10,@north -r +10,@south -r -10,@west -r +10}
# Focus parent/brother/first/second for preselection
super + ctrl + {e,r,t,y}
bspc node --focus @{parent,brother,first,second}
# Preselect the splitting area for next window on leaf/parent
super + ctrl + {u,i,o,p}
bspc node --presel-dir \~{west,south,north,east}
# Define splitting ratio for next window on leaf/parent
super + ctrl + {_,shift +}{1-9}
bspc node {_,@/} --presel-ratio 0.{1-9}
#################################################################
# ALT KEYS
#################################################################
#Focus selected desktop
alt + Tab
bspc desktop -f '^{1-9,10}'
#Focus selected desktop
alt + shift + Tab
bspc desktop -f '^{1-9,10}'
#Rotate desktop
alt + space
bspc node @/ --rotate {90,-90}
#################################################################
# ALT + SHIFT KEYS
#################################################################
# Expand tiled space
alt + shift + {h,j,k,l}
bspc node {@west -r -10,@south -r +10,@north -r -10,@east -r +10}
#################################################################
# CTRL + ALT KEYS
#################################################################
# Focus next/previous window
ctrl + alt + Left
bspc node --focus west
# Focus next/previous window
ctrl + alt + Right
bspc node --focus east
# Focus Up window
ctrl +alt + Up
bspc node --focus north
# Focus Down window
ctrl + alt + Down
bspc node --focus south
#################################################################
#################################################################
################## AZERTY/QWERTY/ ... KEYBOARD#################
#################################################################
#################################################################
#Switch here between qwerty and azerty or make new one
#Focus selected desktop FOR QWERTY KEYBOARDS
super + {1-9,0}
bspc desktop -f '^{1-9,10}'
#Focus selected desktop FOR BELGIAN AZERTY KEYBOARDS
#super + {ampersand,eacute,quotedbl,apostrophe,parenleft,section,egrave,exclam,ccedilla,agrave}
# bspc desktop -f '^{1-9,10}'
#Focus selected desktop FOR FRENCH AZERTY KEYBOARDS
#super + {ampersand,eacute,quotedbl,apostrophe,parenleft,minus,egrave,underscore,ccedilla,agrave}
# bspc desktop -f '^{1-9,10}'
#################################################################
#Switch here between qwerty and azerty or make new one
#Move window to selected desktop FOR QWERTY KEYBOARDS
super + shift + {1-9,0}
id=$(bspc query -N -n); bspc node -d ^{1-9,10}; bspc node -f ${id}}
#Move window to selected desktop FOR AZERTY KEYBOARDS
#super + shift + {ampersand,eacute,quotedbl,apostrophe,parenleft,section,egrave,exclam,ccedilla,agrave}
# id=$(bspc query -N -n); bspc node -d ^{1-9,10}; bspc node -f ${id}}
#################################################################
## super & mouse scroll
# Focused desktop window gap
super + button{4,5}
bspc config -d focused window_gap $((`bspc config -d focused window_gap` {-,+} 2 ))