# # wm independent hotkeys # # power operations super + End ; {s,S} i3lock && sudo -n {zzz,ZZZ} super + End ; {r,p} sudo -n {reboot,poweroff} super + End ; {l,b} {i3lock,xset dpms force off} alt + Tab rofi-windowswitcher super + shift + {End,Insert} exec {rofi-powermenu,rofi-bspwm-unhide} super + {_,shift + }Print exec {peek -t, peek} # applications super + Return exec kitty -1 super + space exec rofi -show drun super + shift + m exec mpv "$(xclip -sel c -o)" super + shift + e exec spacefm super + shift + {n,p} exec kitty -1 --class=kittyfloat -o initial_window_width=900 -o initial_window_height=900 \ {ncmpcpp,htop} super + Insert carpalx-helper # sxhkd reload super + Escape pkill -USR1 -x sxhkd # brightness XF86MonBrightness{Up,Down} xbacklight {+,-}5 # # screencap # Print screenshot # # bspwm hotkeys # # close and kill super + {_,shift + }w bspc node -{c,k} #alternate between the tiled and monocle layout super + m bspc desktop -l next # if current node is automatic, send it to the last manual, otherwise pull the last leaf super + y bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused # swap the current node and the biggest node super + g bspc node -s biggest.local # toggle pointer focus super + alt + p bspc config focus_follows_pointer {true,false} # # state/flags # # set the window state super + {t,shift + t,s,f} bspc node -t {tiled,pseudo_tiled,floating,fullscreen} # set the node flags super + ctrl + {w,x,y,z} bspc node -g {hidden,locked,sticky,private} super + ctrl + shift + w bspc node $(bspc query -N -d focused -n .hidden | tail -1) -g hidden=off # # focus/swap # super {_,+ shift} + r bspc node @/ -R {90,270} # Rotate leaves of tree super + shift + {comma,period} bspc desktop -R {90,270} # focus/swap the node in the given direction super + {_,shift + }{h,j,k,l} bspc node -{f,s} {west,south,north,east} # focus the node for the given path jump super + {p,b,comma,period} bspc node -f @{parent,brother,first,second} # focus the next/previous node in the current desktop super + {_,shift + }c bspc node -f {next,prev}.local # focus the next/previous desktop super + bracket{left,right} bspc desktop -f {prev,next} # focus the last node/desktop super + {grave,Tab} bspc {node,desktop} -f last # focus the older or newer node in the focus history super + {o,i} bspc wm -h off; \ bspc node {older,newer} -f; \ bspc wm -h on # focus/send to the given desktop super + {_,shift + }{1-9,0} bspc {desktop -f,node -d} '^{1-9,10}' # # preselect # # preselect the direction super + ctrl + {h,j,k,l} bspc node -p {west,south,north,east} # preselect the ratio super + ctrl + {1-9} bspc node -o 0.{1-9} # cancel the preselection for the focused node super + ctrl + space bspc node -p cancel # cancelthe preselection for the focused desktop super + ctrl + shift + space bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel # # move/resize # # expand the tiled space in the given direction super + alt + {h,j,k,l} bspc node {@west -r -,@south -r +,@north -r -,@east -r +}10 # contract the tiled space in the given direction super + alt + shift + {h,j,k,l} bspc node {@east -r -,@north -r +,@south -r -,@west -r +}10 # move a floating window super + {Left,Down,Up,Right} bspc node -v {-20 0, 0 20, 0 -20,20 0}