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 | |
7372a4ea AB |
71 | super + apostrophe |
72 | rofi-light | |
73 | ||
7791c200 AB |
74 | # keyboard brightness |
75 | #XF86KbdBrightness{Up,Down} | |
76 | # kbdlight {up,down} | |
3aeeb20d | 77 | |
7791c200 AB |
78 | # |
79 | # bspwm hotkeys | |
80 | # | |
3aeeb20d | 81 | |
7791c200 AB |
82 | # quit bspwm normally |
83 | super + alt + Escape | |
84 | bspc quit | |
3aeeb20d | 85 | |
7791c200 AB |
86 | # close and kill |
87 | super + {w,q} | |
88 | bspc node -{c,k} | |
3aeeb20d | 89 | |
7791c200 AB |
90 | # alternate between the tiled and monocle layout |
91 | super + m | |
92 | bspc desktop -l next | |
3aeeb20d | 93 | |
7791c200 AB |
94 | # if the current node is automatic, send it to the last manual, otherwise pull the last leaf |
95 | super + y | |
96 | bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused | |
3aeeb20d | 97 | |
7791c200 AB |
98 | # swap the current node and the biggest node |
99 | super + g | |
100 | bspc node -s biggest | |
3aeeb20d AB |
101 | |
102 | # | |
7791c200 | 103 | # state/flags |
3aeeb20d AB |
104 | # |
105 | ||
7791c200 AB |
106 | # set the window state |
107 | super + {t,shift + t,s,f} | |
108 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen} | |
3aeeb20d | 109 | |
7791c200 AB |
110 | # set the node flags |
111 | super + ctrl + {x,y,z} | |
112 | bspc node -g {locked,sticky,private} | |
d6e35f6a | 113 | |
7791c200 AB |
114 | # |
115 | # focus/swap | |
116 | # | |
5ece0347 | 117 | |
7791c200 AB |
118 | # focus the node in the given direction |
119 | super + {_,shift + }{h,j,k,l} | |
120 | bspc node -{f,s} {west,south,north,east} | |
7a226deb | 121 | |
7791c200 AB |
122 | # focus the node for the given path jump |
123 | super + {p,b,comma,period} | |
124 | bspc node -f @{parent,brother,first,second} | |
3aeeb20d | 125 | |
855ca243 AB |
126 | # focus the next/previous node in the current desktop |
127 | super + {_,shift + }c | |
128 | bspc node -f {next,prev}.local | |
3aeeb20d | 129 | |
855ca243 | 130 | # focus the next/previous desktop in the current monitor |
7791c200 | 131 | super + bracket{left,right} |
855ca243 | 132 | bspc desktop -f {prev,next}.local |
3aeeb20d | 133 | |
7791c200 AB |
134 | # send to next/prev desktop |
135 | super + shift + bracket{left,right} | |
136 | bspc node -d {prev,next} | |
3aeeb20d | 137 | |
7791c200 AB |
138 | # focus the last node/desktop |
139 | super + {grave,Tab} | |
140 | bspc {node,desktop} -f last | |
3aeeb20d | 141 | |
7791c200 AB |
142 | # focus the older or newer node in the focus history |
143 | super + {o,i} | |
144 | bspc wm -h off; \ | |
145 | bspc node {older,newer} -f; \ | |
146 | bspc wm -h on | |
78856df8 | 147 | |
7791c200 AB |
148 | # focus or send to the given desktop |
149 | super + {_,shift + }{1-9,0} | |
150 | bspc {desktop -f,node -d} '^{1-9,10}' | |
78856df8 | 151 | |
7791c200 AB |
152 | # |
153 | # preselect | |
154 | # | |
78856df8 | 155 | |
7791c200 AB |
156 | # preselect the direction |
157 | super + ctrl + {h,j,k,l} | |
158 | bspc node -p {west,south,north,east} | |
a341f8e4 | 159 | |
7791c200 AB |
160 | # preselect the ratio |
161 | super + ctrl + {1-9} | |
162 | bspc node -o 0.{1-9} | |
a341f8e4 | 163 | |
7791c200 AB |
164 | # cancel the preselection for the focused node |
165 | super + ctrl + space | |
166 | bspc node -p cancel | |
a341f8e4 | 167 | |
7791c200 AB |
168 | # cancel the preselection for the focused desktop |
169 | super + ctrl + shift + space | |
170 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel | |
8c17e1b6 | 171 | |
7791c200 AB |
172 | # |
173 | # move/resize | |
174 | # | |
8c17e1b6 | 175 | |
7791c200 AB |
176 | # expand a window by moving one of its side outward |
177 | super + alt + {h,j,k,l} | |
178 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} | |
ed5099ff | 179 | |
7791c200 AB |
180 | # contract a window by moving one of its side inward |
181 | super + alt + shift + {h,j,k,l} | |
182 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} | |
a8a12804 | 183 | |
7791c200 AB |
184 | # move a floating window |
185 | super + {Left,Down,Up,Right} | |
186 | bspc node -v {-20 0,0 20,0 -20,20 0} | |
56fe4497 AB |
187 | |
188 | #alt + bracket{left,right} | |
189 | # xdotool key --clearmodifiers ctrl+Page_{Up,Down} |