Commit | Line | Data |
---|---|---|
3aeeb20d | 1 | # |
7791c200 | 2 | # wm independent hotkeys |
3aeeb20d AB |
3 | # |
4 | ||
7791c200 | 5 | # terminal emulator |
855ca243 | 6 | super + {_,shift} + Return |
56fe4497 AB |
7 | urxvt{_, -name tiled} |
8 | ||
9 | #super + {_,shift} + Return | |
10 | # termite{_, --name=tiled} | |
3aeeb20d | 11 | |
7791c200 AB |
12 | # program launcher |
13 | super + space | |
855ca243 | 14 | rofi -show run |
3aeeb20d | 15 | |
1a2c9c24 AB |
16 | super + alt + space |
17 | xfce4-popup-whiskermenu | |
18 | ||
855ca243 AB |
19 | # window finder |
20 | super + backslash | |
21 | rofi -show window | |
22 | ||
23 | # password manager | |
23a1f61a AB |
24 | super + shift + space |
25 | rofi-pass | |
26 | ||
7791c200 AB |
27 | # firefox |
28 | #super + r | |
29 | # firefox | |
3aeeb20d | 30 | |
7791c200 AB |
31 | # chromium |
32 | #super + c | |
855ca243 | 33 | # chromium -incognito |
3aeeb20d | 34 | |
7791c200 AB |
35 | # emacs |
36 | super + e | |
37 | emacs | |
3aeeb20d | 38 | |
855ca243 AB |
39 | # make sxhkd reload its configuration files: |
40 | super + Escape | |
41 | pkill -USR1 -x sxhkd | |
3aeeb20d | 42 | |
855ca243 AB |
43 | # volume {up,down} |
44 | XF86Audio{Raise,Lower}Volume | |
45 | pamixer --allow-boost --{in,de}crease 5 | |
3aeeb20d | 46 | |
7791c200 AB |
47 | # mute |
48 | XF86AudioMute | |
49 | pamixer --toggle-mute | |
896820db | 50 | |
5633cf03 AB |
51 | # playback control |
52 | XF86Audio{Play,Prev,Next} | |
53 | mpc {toggle,prev,next} | |
54 | ||
1a2c9c24 | 55 | # lock the screen |
855ca243 | 56 | super + shift + q |
1a2c9c24 | 57 | light-locker-command -l |
855ca243 AB |
58 | |
59 | # Toggle keyboard layout | |
4372f047 | 60 | super + F7 |
855ca243 AB |
61 | toggle-layout |
62 | ||
63 | # Toggle Xfce presentation mode | |
64 | XF86LaunchB | |
65 | toggle-presentation-mode | |
66 | ||
7791c200 | 67 | # monitor brightness |
56fe4497 AB |
68 | #XF86MonBrightness{Up,Down} |
69 | # light -{A,U} 5 | |
3aeeb20d | 70 | |
7791c200 AB |
71 | # keyboard brightness |
72 | #XF86KbdBrightness{Up,Down} | |
73 | # kbdlight {up,down} | |
3aeeb20d | 74 | |
7791c200 AB |
75 | # |
76 | # bspwm hotkeys | |
77 | # | |
3aeeb20d | 78 | |
7791c200 AB |
79 | # quit bspwm normally |
80 | super + alt + Escape | |
81 | bspc quit | |
3aeeb20d | 82 | |
7791c200 AB |
83 | # close and kill |
84 | super + {w,q} | |
85 | bspc node -{c,k} | |
3aeeb20d | 86 | |
7791c200 AB |
87 | # alternate between the tiled and monocle layout |
88 | super + m | |
89 | bspc desktop -l next | |
3aeeb20d | 90 | |
7791c200 AB |
91 | # if the current node is automatic, send it to the last manual, otherwise pull the last leaf |
92 | super + y | |
93 | bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused | |
3aeeb20d | 94 | |
7791c200 AB |
95 | # swap the current node and the biggest node |
96 | super + g | |
97 | bspc node -s biggest | |
3aeeb20d AB |
98 | |
99 | # | |
7791c200 | 100 | # state/flags |
3aeeb20d AB |
101 | # |
102 | ||
7791c200 AB |
103 | # set the window state |
104 | super + {t,shift + t,s,f} | |
105 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen} | |
3aeeb20d | 106 | |
7791c200 AB |
107 | # set the node flags |
108 | super + ctrl + {x,y,z} | |
109 | bspc node -g {locked,sticky,private} | |
d6e35f6a | 110 | |
7791c200 AB |
111 | # |
112 | # focus/swap | |
113 | # | |
5ece0347 | 114 | |
7791c200 AB |
115 | # focus the node in the given direction |
116 | super + {_,shift + }{h,j,k,l} | |
117 | bspc node -{f,s} {west,south,north,east} | |
7a226deb | 118 | |
7791c200 AB |
119 | # focus the node for the given path jump |
120 | super + {p,b,comma,period} | |
121 | bspc node -f @{parent,brother,first,second} | |
3aeeb20d | 122 | |
855ca243 AB |
123 | # focus the next/previous node in the current desktop |
124 | super + {_,shift + }c | |
125 | bspc node -f {next,prev}.local | |
3aeeb20d | 126 | |
855ca243 | 127 | # focus the next/previous desktop in the current monitor |
7791c200 | 128 | super + bracket{left,right} |
855ca243 | 129 | bspc desktop -f {prev,next}.local |
3aeeb20d | 130 | |
7791c200 AB |
131 | # send to next/prev desktop |
132 | super + shift + bracket{left,right} | |
133 | bspc node -d {prev,next} | |
3aeeb20d | 134 | |
7791c200 AB |
135 | # focus the last node/desktop |
136 | super + {grave,Tab} | |
137 | bspc {node,desktop} -f last | |
3aeeb20d | 138 | |
7791c200 AB |
139 | # focus the older or newer node in the focus history |
140 | super + {o,i} | |
141 | bspc wm -h off; \ | |
142 | bspc node {older,newer} -f; \ | |
143 | bspc wm -h on | |
78856df8 | 144 | |
7791c200 AB |
145 | # focus or send to the given desktop |
146 | super + {_,shift + }{1-9,0} | |
147 | bspc {desktop -f,node -d} '^{1-9,10}' | |
78856df8 | 148 | |
7791c200 AB |
149 | # |
150 | # preselect | |
151 | # | |
78856df8 | 152 | |
7791c200 AB |
153 | # preselect the direction |
154 | super + ctrl + {h,j,k,l} | |
155 | bspc node -p {west,south,north,east} | |
a341f8e4 | 156 | |
7791c200 AB |
157 | # preselect the ratio |
158 | super + ctrl + {1-9} | |
159 | bspc node -o 0.{1-9} | |
a341f8e4 | 160 | |
7791c200 AB |
161 | # cancel the preselection for the focused node |
162 | super + ctrl + space | |
163 | bspc node -p cancel | |
a341f8e4 | 164 | |
7791c200 AB |
165 | # cancel the preselection for the focused desktop |
166 | super + ctrl + shift + space | |
167 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel | |
8c17e1b6 | 168 | |
7791c200 AB |
169 | # |
170 | # move/resize | |
171 | # | |
8c17e1b6 | 172 | |
7791c200 AB |
173 | # expand a window by moving one of its side outward |
174 | super + alt + {h,j,k,l} | |
175 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} | |
ed5099ff | 176 | |
7791c200 AB |
177 | # contract a window by moving one of its side inward |
178 | super + alt + shift + {h,j,k,l} | |
179 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} | |
a8a12804 | 180 | |
7791c200 AB |
181 | # move a floating window |
182 | super + {Left,Down,Up,Right} | |
183 | bspc node -v {-20 0,0 20,0 -20,20 0} | |
56fe4497 AB |
184 | |
185 | #alt + bracket{left,right} | |
186 | # xdotool key --clearmodifiers ctrl+Page_{Up,Down} |