aboutsummaryrefslogtreecommitdiff
path: root/config/sxhkd/sxhkdrc
blob: 9931cd79cf30737f663d8f70d6ff346498309670 (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
#
# bspwm hotkeys
#

grave ; shift + c
	~/.ratpoison/wp change

grave ; f
	~/.ratpoison/spotlight

grave ; alt + Escape
	bspc quit

grave ; x
	bspc window -c

grave ; X
	bspc window -k

grave ; t
	bspc desktop -l next

grave ; b
	bspc desktop -B

# banish mouse
grave ; B
	xdotool mousemove 10000 100000

grave ; {u,U,o}
	bspc window -t {floating,pseudo_tiled,fullscreen}

grave ; {grave,Tab}
	bspc {window,desktop} -f last

grave ; apostrophe
	bspc window -s last

#grave ; {o,i}
#	bspc control --record-history off; \
#	bspc window {older,newer} -f; \
#	bspc control --record-history on

#grave ; y
#	bspc window -w last.manual

grave ; m
	bspc window -s biggest

grave ; {h,j,k,l}
	bspc window -f {left,down,up,right}

grave ; c; {h,j,k,l}
	bspc window -s {left,down,up,right}

#grave ; {_,shift + }c
#	bspc window -f {next,prev}

grave ; {comma,period}
	bspc desktop -C {backward,forward}

grave ; bracket{left,right}
	bspc desktop -f {prev,next}

grave ; s ; {h,j,k,l}
	bspc window -p {left,down,up,right}

grave ; ctrl + {_,shift + }space
	bspc {window -p cancel,desktop -c}

hyper + {h,j,k,l}
	bspc window -e {left -10,down +10,up -10,right +10}

hyper + alt + {h,j,k,l}
	bspc window -e {right -10,up +10,down -10,left +10}

grave ; {1-9}
	bspc window -f {1-9}


grave ; ctrl + {1-9}
	bspc window -r 0.{1-9}

{_,alt + }{F1,F2,F3,F4,F5,F6,F7,F8,F9,F11,F12}
	bspc {desktop -f,window -d} ^{1-9,11,12}

{_,alt + } F10
	bspc {desktop -f,window -d} ^10 && xset -led named "Scroll Lock"


{_,alt + } shift + F12
	bspc {desktop -f,window -d} ^13

~button1
	bspc pointer -g focus

hyper + button{1-3}
	bspc pointer -g {move,resize_side,resize_corner}

# Move floating windows (requires baskerville's xdo pacacur -S xdo-git)
alt + {h,l,k,j}
    xdo move {-x -20,-x +20,-y -20,-y +20}

# Resize floating windows
alt + shift + {h,l,k,j}
    xdo resize {-w -20,-w +20,-h -20,-h +20}

grave ; !button{1-3}
	bspc pointer -t %i %i

grave ; @button{1-3}
	bspc pointer -u

#
# wm independent hotkeys
#

grave ; i
	~/bin/paste

grave ; space
	urxvt

grave ; slash
	~/.ratpoison/create_frame

super + u
	uzbl-browser

super + f
	firefox

super + s
	skype

super + shift + L
	i3lock -n -i ~/.wallpaper.png -z


#
# Clipboard hotkeys
#

grave ; p ; {1-9}
	~/.ratpoison/clipboard paste {1-9}

grave ; p ; p
	~/.ratpoison/clipboard menu_paste 

grave ; p ; u
	~/.ratpoison/clipboard push

grave ; p ; o
	~/.ratpoison/clipboard pop

grave ; y ; {1-9}
	~/.ratpoison/clipboard set {1-9}

grave ; y ; y
	~/.ratpoison/clipboard menu_set 

grave ; shift + p
	xclip -o | curl -F 'sprunge=<-' http://sprunge.us | xclip 

#
# Sprunge and Imgur hotkeys
#

grave ; P
	xclip -o | curl -F 'sprunge=<-' http://sprunge.us | xclip 


grave;  g 
	exec ~/bin/imgur
#
# music control
#

super + space 
	mpc -h 127.0.0.1 toggle  && ~/.ratpoison/panel/monce > /tmp/panel-fifo

super + Right 
	mpc -h 127.0.0.1 next  && echo "p`mpc current`" | cut --bytes 1-32 > /tmp/panel-fifo

super + Left  
	mpc -h 127.0.0.1 prev  && echo "p`mpc current`" | cut --bytes 1-32 > /tmp/panel-fifo

super + Up    
	mpc -h 127.0.0.1 volume +5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /K/' > /tmp/panel-fifo 

super + Down  
	mpc -h 127.0.0.1 volume -5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /K/' > /tmp/panel-fifo 

XF86AudioRaiseVolume
	amixer -q set Master 5+ && volume -f 'V%i' > /tmp/panel-fifo 

XF86AudioLowerVolume 
	amixer -q set Master 5- && volume -f 'V%i' > /tmp/panel-fifo

super + Prior
	amixer -q set Master 5+ && volume -f 'V%i' > /tmp/panel-fifo 

super + Next 
	amixer -q set Master 5- && volume -f 'V%i' > "$PANEL_FIFO"
#
#
# brightness controls
#


XF86MonBrightnessUp
	xbacklight -inc 10

XF86MonBrightnessDown
	xbacklight -dec 2

XF86KbdBrightnessUp
	kbdlight up 1

XF86KbdBrightnessDown	
	kbdlight down 1

# make sxhkd reload its configuration files:
grave ; Escape
	pkill -USR1 -x sxhkd