dotfiles/.config/sxhkd/sxhkdrc
Louis Vallat 63cd5adfe7
Added base config for bspwm
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-11-12 23:04:44 +01:00

49 lines
1.2 KiB
Plaintext

#Terminal
super + Return
konsole
#Program launcher
super + r
dmenu_run
#Firefox
super + d
firefox
# Lock Screen
super + l
betterlockscreen -l
#Nautilus
super + p
dolphin
#Quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
#Close and kill
super + {_,shift + }v
bspc node -{c,k}
#Set the window state
super + {t,s,f}
bspc node -t {tiled,floating,fullscreen}
#Focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
#Focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#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 desktop
super + Escape
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#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}