-
Notifications
You must be signed in to change notification settings - Fork 3
/
sxhkdrc
240 lines (176 loc) · 4.87 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
# vim: set foldmarker={{,}} foldlevel=0 foldmethod=marker nospell:
#
# bspwm hotkeys
#
# general hotkeys {{
alt + super + Escape
~/.config/bspwm/misc/killall ; bspc quit 1
# make sxhkd reload its configuration files:
ctrl + Escape
pkill -USR1 -x sxhkd; dunstify "Sxhkd configuration reloaded"
# Close current window
alt + w
bspc window -c
# Presets window distribution
#alt + b
# bspc desktop -B
# Cycle through desktops
#alt + bracket{left,right}
# bspc desktop -f {prev,next}
#alt + ctrl + {_,shift +}Tab
# bspc desktop -f {next,prev}
alt + {_,shift +}grave
bspc desktop -f {next,prev}.occupied
alt + ctrl + {_,shift +}grave
bspc desktop -f {next,prev}
# }}
# mouse settings {{
# Mouse pointer raises focus on window
~button1
bspc pointer -g focus
# Mouse button to move and resize
super + shift + button{1-3}
bspc pointer -g {move,resize_side,resize_corner}
super + shift + !button{1-3}
bspc pointer -t %i %i
super + shift + @button{1-3}
bspc pointer -u
# }}
# window related hotkeys {{
# f - fullscreen
alt + f
~/.config/bspwm/misc/full
# shift + f - float
alt + shift + f
~/.config/bspwm/misc/floating
# sticky window
alt + s
bspc window -t sticky
#alt + {grave,Tab}
# bspc {window,desktop} -f last
# swap window with the last
alt + apostrophe
bspc window -s last
# Focus other desktop
alt + shift + 1
bspc monitor -f prev
alt + shift + 2
bspc monitor -f next
# Focus next window
alt + {_,shift +} Tab
bspc window -f {next,prev}
# Focus {h,j,k,l} window
alt + {h,j,k,l}
bspc window -f {left,down,up,right}
# Create a new window on the given spot
alt + shift + {h,j,k,l}
bspc window -p {left,down,up,right}
# alt+ctrl+space cancel spot selection
alt + space
bspc window -p cancel
# }}
# moving around {{
#alt + y
# bspc window -w last.manual
# Move current window to the biggest spot
alt + ctrl + f
bspc window -s biggest
# Move window to other monitor
ctrl + shift + {h,l}
bspc window -m {prev,next}
bspc monitor -f {prev,next}
# Move window to the {h,j,k,l} position
alt + ctrl + {h,j,k,l}
bspc window -s {left,down,up,right}
# wtf why the above definition doesnt work?
alt + ctrl + l
bspc window -s right
#alt + {_,shift + }c
# bspc window -f {next,prev}
# Move window back and forward
#alt + {comma,period}
# bspc desktop -C {backward,forward}
# }}
# change window size and position {{
# Increase window width or height
#alt + super + shift + {h,j,k,l}
# bspc window -e {left,down,up,right} push
# Decrease window width or height
#alt + super + {h,j,k,l}
# bspc window -e {right,up,down,left} pull
# Go to or move to a window to given desktop
alt + {_,ctrl+ }{1-9,0}
bspc {desktop -f,window -d} ^{1-9,10}
# change window gap at run time
super + plus
bspc config -d focused window_gap $((`bspc config -d focused window_gap` + 5 ))
# Restore original gap
super + equal
bspc config top_padding 6; bspc config -d focused window_gap 15
super + minus
bspc config -d focused window_gap $((`bspc config -d focused window_gap` - 5 ))
# Remove gap
super + 0
bspc config top_padding 14; bspc config -d focused window_gap 0
super + alt + minus
~/.config/bspwm/misc/terminal_transparency decrement
super + alt + plus
~/.config/bspwm/misc/terminal_transparency increment
# source: http://crunchbang.org/forums/viewtopic.php?pid=378171#p378171
# move floating windows (requires baskerville's xdo pacacur -S xdo-git)
super + ctrl + {h,l,k,j}
xdo move {-x -50,-x +50,-y -50,-y +50}
# Resize floating windows
super + shift + {h,l,k,j}
xdo resize {-w -50,-w +50,-h -50,-h +50}
# top left
super + shift + 1
~/.config/bspwm/misc/preset 'top-left'
# bottom left
super + shift + 2
~/.config/bspwm/misc/preset 'bottom-left'
# vertical right
super + shift + 3
~/.config/bspwm/misc/preset 'vertical-right'
# wide vertical left
super + shift + 4;
~/.config/bspwm/misc/preset 'wide-vertical-left'
# small bottom left
super + shift + 5
~/.config/bspwm/misc/preset 'small-bottom-left'
# }}
# application launchers {{
ctrl + Return
gnome-terminal --working-directory=~
# floating terminal
ctrl + shift + Return
~/.config/bspwm/misc/floating_terminal
# Toggle visibility status bar
super + space
~/.config/bspwm/misc/hide dzen2-bottom-status-bar
# chromium
super + c
chromium
# }}
# application actions {{
XF86Audio{Prev,Next}
~/.config/bspwm/misc/player {prev,next}
XF86AudioStop
~/.config/bspwm/misc/player stop
XF86AudioPlay
~/.config/bspwm/misc/player play
# Show dmenu bar
ctrl + space
~/.config/bspwm/misc/application_launcher
# Show dmenu bar (windows)
ctrl + shift + space
~/.config/bspwm/misc/application_switcher
# Take an screenshot
ctrl + Print
~/.config/bspwm/misc/screenshot
# un/hide currently active window
super + {_,shift} + u
~/.config/bspwm/misc/toggle {hide,show}
super + l
~/.config/bspwm/misc/switch.sh
# }}