-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsxhkdrc
205 lines (167 loc) · 5 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
#
# wm independent hotkeys
#
# Current layout:
#
# < ` lock
# z vol a quake q info 1 desktop
# x vol s quake 2 w close 2 desktop
# c d modes e quak-t 3 desktop
# v vpn f full r launch 4 desktop
# b balance g pstiled tog t tiled 5 desktop
#
# n rotate h nav y move float 5 desktop
# m rotate j nav u move float 7 desktop
# , padding k nav i move float 8 desktop
# . padding l nav o move float 9 desktop
# / ; split p pass 0 logout,sxhkd,power
# ' [ prev-d - order
# \ ] next-d = order
#
#ESC none
#SPACE presel
#ENTER terminal
super + grave
xwobflock
# quit bspwm normally
super + 0
bspc quit
super + alt + 0
pkill -USR1 -x sxhkd
super + {ctrl, shift} + 0
sudo pkill openvpn && \
sleep 0.5 && \
{poweroff || poweroff, systemctl reboot || systemctl reboot}
super + {_,shift} + Return
urxvtc { ,-name floating}
super + r
launcher
super + {_,shift,ctrl,shift+ctrl,alt,alt+shift} + space
toggle-{kmap,opacity,rs,trayer,cairo_dock,screen}
super + {_,ctrl +} q
{notify-info,query-wifi}
ctrl + space
for corner in northeast northwest southeast southwest; do \
touch "/dev/shm/notify_fifo_"$corner"_dismiss"; \
done
super + p + {_, shift, ctrl, ctrl + shift} + {_, alt}
{paste-pass, paste-user, paste-user-pass, paste-user-then-pass} {'', 'dontguess'}
super + {_,shift + } v
{toggle,restart}-vpn
super + ctrl + v
pia-dialog
# quakes
super + {_, shift, ctrl, shift + ctrl} + {e, s}
spawn_quakified -g -d {top, left, right, bottom} {urxvtc, qutebrowser}
alt + {_, shift, ctrl, shift + ctrl} + {e, s}
spawn_quakified -d {bottom, left, right, top} {urxvtc, qutebrowser}
alt + {_, shift, ctrl, shift + ctrl} + a
quakify -d {bottom, left, right, top} -n spawned_by_a_key
super + {shift, ctrl, shift + ctrl} + a
quakify -g -d {left, right, bottom} -n spawned_by_a_key
super + a
spawn_quakified -g -d top torrent
super + ctrl + d
quakify -r
super + {z, x}
{lower-vol, raise-vol}
XF86Audio{Lower,Raise}Volume
{lower-vol, raise-vol}
XF86AudioMute
toggle-mute
# close and kill
super + {_,shift + } w
bspc node -{c,k}
#
# NODES
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# if the current node is automatic, send it to the last manual, otherwise pull the last leaf
super + semicolon
bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
# cancel the preselection for the focused node
super + ctrl + semicolon
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#bspc node -p cancel
#
# resize tiled/floating
#
# expand the tiled space in the given direction
super + alt + {_,ctrl} + {shift,_} + {h,j,k,l}
amount={10,50} && \
$BSPWM_SCRIPTS_DIR/resizer {-i, } {left -$amount 0,bottom 0 $amount,top 0 -$amount,right $amount 0, bottom_left -$amount $amount, bottom_right $amount $amount, top_left -$amount -$amount, top_right $amount -$amount}
# node modes
super + ctrl + s
bspc node -g sticky
super + {d, shift + d, f}
$BSPWM_SCRIPTS_DIR/state_toggle {floating,pseudo_tiled,fullscreen}
super + shift + f
bspc desktop -l next
super + t
quakify -f
super + g
is_on=$(bspc config center_pseudo_tiled) && \
val=true && \
[[ $is_on == true ]] && val=false && \
bspc config center_pseudo_tiled $val || bspc config center_pseudo_tiled true
super + {equal, plus, minus}
bspc node -l {normal, above, below}
alt + {_,shift + }Tab
bspc node -f {next,prev}.local.!hidden.window
super + {_,shift + }Tab
bspc node -f {next,prev}.local.!hidden.window
# rotations
super + {_, ctrl +} {n,m}
bspc node @{/,parent} -R {-90, 90}
# balance
super + {_,shift +} b
bspc node @/ {-E,-B}
#gaps
super + {_,ctrl +} {period,comma}
multiply={1,5} && \
sign={-1,1} && \
$BSPWM_SCRIPTS_DIR/gaps $((10 * $multiply * $sign))
#paddings
super + {_,ctrl +} {shift + alt,shift, alt} + {comma,period}
multiply={1,5} && \
dir={"top bottom","left right top bottom","left right"} && \
sign={1,-1} && \
$BSPWM_SCRIPTS_DIR/padding $((10 * $multiply * $sign)) $dir
#
#floating move
super + {y,u,i,o} + {_, ctrl}
$BSPWM_SCRIPTS_DIR/presel_or_move_floating {1,2,3,4} {1,2}
#
#DESKTOPS
#
# switch desktop
ctrl + {super,alt} + {_,shift + }{h,j,k,l}
$BSPWM_SCRIPTS_DIR/desktop_wall{ , }{switch,switchwithwindow} {west,south,north,east}
# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# focus the next/previous desktop
super + bracket{left,right}
bspc desktop -f {prev,next}
Print
scrot ~/tmp/%b%d::%H%M%S.png
#
# pointer focus/move/resize
#
## focus
#~button1
# bspc pointer -g focus
#
## start move/resize
#super + button{1-3}
# ; bspc pointer -g {move,resize_side,resize_corner}
#
## end move/resize
#super + @button{1-3}
# bspc pointer -u