2 # wm independent hotkeys
13 rofi -show run -font "Inconsolata 13"
40 # emacs -Q -l src/elisp/oremacs/init.el
48 pamixer --allow-boost --increase 5
52 pamixer --allow-boost --decrease 5
59 #XF86MonBrightness{Up,Down}
60 # xbacklight -time 0 {+5,-5}
63 #XF86KbdBrightness{Up,Down}
67 /home/amin/.local/bin/toggle-layout
69 # make sxhkd reload its configuration files:
85 # alternate between the tiled and monocle layout
89 # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
91 bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
93 # swap the current node and the biggest node
101 # set the window state
102 super + {t,shift + t,s,f}
103 bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
106 super + ctrl + {x,y,z}
107 bspc node -g {locked,sticky,private}
113 # focus the node in the given direction
114 super + {_,shift + }{h,j,k,l}
115 bspc node -{f,s} {west,south,north,east}
117 # focus the node for the given path jump
118 super + {p,b,comma,period}
119 bspc node -f @{parent,brother,first,second}
121 # focus the next/previous node
122 super + {_,shift + }slash
123 bspc node -f {next,prev}
125 # focus the next/previous desktop
126 super + bracket{left,right}
127 bspc desktop -f {prev,next}
129 # send to next/prev desktop
130 super + shift + bracket{left,right}
131 bspc node -d {prev,next}
133 # focus the last node/desktop
135 bspc {node,desktop} -f last
137 # focus the older or newer node in the focus history
140 bspc node {older,newer} -f; \
143 # focus or send to the given desktop
144 super + {_,shift + }{1-9,0}
145 bspc {desktop -f,node -d} '^{1-9,10}'
151 # preselect the direction
152 super + ctrl + {h,j,k,l}
153 bspc node -p {west,south,north,east}
155 # preselect the ratio
159 # cancel the preselection for the focused node
163 # cancel the preselection for the focused desktop
164 super + ctrl + shift + space
165 bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
171 # expand a window by moving one of its side outward
172 super + alt + {h,j,k,l}
173 bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
175 # contract a window by moving one of its side inward
176 super + alt + shift + {h,j,k,l}
177 bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
179 # move a floating window
180 super + {Left,Down,Up,Right}
181 bspc node -v {-20 0,0 20,0 -20,20 0}