sxhkd/sxhkdrc.bspwm

132 lines
2.8 KiB
Plaintext

# #
# bspwm hotkeys
#
# quit/restart bspwm
mode_switch + shift + {q,r}
bspc {quit,wm -r}
# close and kill
mode_switch + BackSpace
bspc node -c
# ctrl + KP_Subtract
# bspc node -k
# alternate between the tiled and monocle layout
mode_switch + m
bspc desktop -l next
# swap the current node and the biggest node
# mode_switch + g
# bspc node -s biggest
#
# state/flags
#
# set the window state
mode_switch + {t,shift + t,shift + f,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
mode_switch + s
bspc node -g sticky
# # set the node flags
# mode_switch + ctrl + {m,x,y,z}
# bspc node -g {marked,locked,sticky,private}
#
# # send the newest marked node to the newest preselected node
# mode_switch + y
# bspc node newest.marked.local -n newest.!automatic.local
#
# focus/swap
#
# Focus the next/previous node in the current desktop:
mode_switch + bracket{left,right}
bspc node -f {next,prev}.local
# focus the node in the given direction
mode_switch + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
focus the parent node
mode_switch + Prior
bspc node -f @parent
# focus the node for the given path jump
# mode_switch + {p,b,comma,period}
# bspc node -f @{parent,brother,first,second}
# focus the next/previous node in the current desktop
# mode_switch + {_,shift + }c
# bspc node -f {next,prev}.local
focus the next/previous desktop in the current monitor
mode_switch + ctrl + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
# mode_switch + grave
# bspc node -f last
mode_switch + c
bspc node -f last
# focus the older or newer node in the focus history
# mode_switch + {o,i}
# bspc wm -h off; \
# bspc node {older,newer} -f; \
# bspc wm -h on
# window-select script
mode_switch + space
window-select
mode_switch + shift + space
window-select all
mode_switch + ctrl + space
window-select monitor
#
# preselect
#
# preselect the direction
mode_switch + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
mode_switch + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
# mode_switch + ctrl + space
# bspc node -p cancel
# cancel the preselection for the focused desktop
# mode_switch + ctrl + shift + space
# bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
# mark and send to preselected
mode_switch + ctrl + m
bspc node -g marked && bspc node newest.marked.local -n newest.!automatic.local
#
# move/resize
#
# expand a window by moving one of its side outward
mode_switch + 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
mode_switch + 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
mode_switch + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}