2 # wm independent hotkeys
11 rofi -show run -font "Inconsolata 13"
37 pamixer --allow-boost --increase 5
41 pamixer --allow-boost --decrease 5
48 #XF86MonBrightness{Up,Down}
49 # xbacklight -time 0 {+5,-5}
52 #XF86KbdBrightness{Up,Down}
58 # make sxhkd reload its configuration files:
74 # alternate between the tiled and monocle layout
78 # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
80 bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
82 # swap the current node and the biggest node
90 # set the window state
91 super + {t,shift + t,s,f}
92 bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
95 super + ctrl + {x,y,z}
96 bspc node -g {locked,sticky,private}
102 # focus the node in the given direction
103 super + {_,shift + }{h,j,k,l}
104 bspc node -{f,s} {west,south,north,east}
106 # focus the node for the given path jump
107 super + {p,b,comma,period}
108 bspc node -f @{parent,brother,first,second}
110 # focus the next/previous node
111 super + {_,shift + }slash
112 bspc node -f {next,prev}
114 # focus the next/previous desktop
115 super + bracket{left,right}
116 bspc desktop -f {prev,next}
118 # send to next/prev desktop
119 super + shift + bracket{left,right}
120 bspc node -d {prev,next}
122 # focus the last node/desktop
124 bspc {node,desktop} -f last
126 # focus the older or newer node in the focus history
129 bspc node {older,newer} -f; \
132 # focus or send to the given desktop
133 super + {_,shift + }{1-9,0}
134 bspc {desktop -f,node -d} '^{1-9,10}'
140 # preselect the direction
141 super + ctrl + {h,j,k,l}
142 bspc node -p {west,south,north,east}
144 # preselect the ratio
148 # cancel the preselection for the focused node
152 # cancel the preselection for the focused desktop
153 super + ctrl + shift + space
154 bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
160 # expand a window by moving one of its side outward
161 super + alt + {h,j,k,l}
162 bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
164 # contract a window by moving one of its side inward
165 super + alt + shift + {h,j,k,l}
166 bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
168 # move a floating window
169 super + {Left,Down,Up,Right}
170 bspc node -v {-20 0,0 20,0 -20,20 0}