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