💾 Archived View for ait.place › dot › bspwm › .config › bspwm › sxhkd.txt captured on 2022-03-01 at 15:25:18.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

#
# bspwm hotkeys
#

# windows gaps
super + {underscore,plus}
	bspc config window_gap {0,50}

super + {minus,equal}
	bspc config window_gap $(($(bspc config window_gap) {-,+}5))

# quit/restart bspwm
super + alt + {q,r}
	bspc {quit,wm -r}

# close and kill
super + {_,shift + }q
	bspc node -{c,k}

# alternate between the tiled and monocle layout
super + m
	bspc desktop -l next

# swap the current node and the biggest node
super + space
	bspc node -s biggest.local

#
# state/flags
#

# set the window state
super + {t,shift + t,f,shift + m}
	bspc node -t {tiled,pseudo_tiled,floating,fullscreen}

# set the tiling scheme
super + semicolon
	[ "$(bspc config automatic_scheme)" = "longest_side" ] && bspc config automatic_scheme spiral || bspc config automatic_scheme longest_side

# set the node flags
super + ctrl + {m,o,0,p,minus}
	bspc node -g {marked,locked,sticky,private,hidden}

#
# focus/swap
#

# focus the next/previous node in the current desktop
super + {j,k}
	bspc node -f {next,prev}.local

# focus the next/previous desktop in the current monitor
super + {h,l}
	bspc desktop -f {prev,next}.local

# focus the last node/desktop
super + {grave,Tab}
	bspc {node,desktop} -f last

# focus root node on desktop
super + 0
	bspc node -f @/

# focus or send to the given desktop
super + {_,shift + }{1-9}
	bspc {desktop -f,node -d} '^{1-9}'

# focus or send to monitor left/right
super + {_,shift + }{comma,period}
	bspc {monitor -f,node -m} {west,east}

#
# 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

# cancel the 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 a window by moving one of its side outward
super + alt + {h,j,k,l}
	bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}

# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
	bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

# move a floating window
super + {Left,Down,Up,Right}
	bspc node -v {-20 0,0 20,0 -20,20 0}
#
# window mouse control
#

# Select diffrent window with mousewheel (useful for monocle mode)
super + button{4,5}
	bspc node -f {next,prev}.local

# focus the next/previous desktop in the current monitor
super + button{8,9}
	bspc desktop -f {prev,next}.local