Created
January 7, 2023 14:23
-
-
Save qolarnix/5634d84c5a22ea28d1632cde868bddda to your computer and use it in GitHub Desktop.
sxhkdrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# terminal emulator | |
super + Return | |
alacritty | |
# program launcher | |
alt + l | |
rofi -show drun -icon-theme "Breeze" -show-icons | |
# make sxhkd reload its configuration files: | |
super + Escape | |
pkill -USR1 -x sxhkd | |
# quit/restart bspwm | |
super + alt + {q,r} | |
bspc {quit,wm -r} | |
# close and kill | |
super + {_,shift + }w | |
bspc node -{c,k} | |
# alternate between the tiled and monocle layout | |
super + m | |
bspc desktop -l next | |
# swap the current node and the biggest window | |
super + g | |
bspc node -s biggest.window | |
# set the window state | |
super + {t,shift + t,s,f} | |
bspc node -t {tiled,pseudo_tiled,floating,fullscreen} | |
# set the node flags | |
super + ctrl + {m,x,y,z} | |
bspc node -g {marked,locked,sticky,private} | |
# focus the node in the given direction | |
super + {_,shift + }{h,j,k,l} | |
bspc node -{f,s} {west,south,north,east} | |
# focus the next/previous window in the current desktop | |
super + {_,shift + }c | |
bspc node -f {next,prev}.local.!hidden.window | |
# focus the next/previous desktop in the current monitor | |
super + bracket{left,right} | |
bspc desktop -f {prev,next}.local | |
# cycle through windows next | |
super + Tab | |
bspc node -f next.!hidden.window | |
# cycle through windows previous | |
super + shift + Tab | |
bspc node -f prev.!hidden.window | |
# focus next monitor | |
super + alt + bracket{left,right} | |
bspc monitor --focus {prev,next} | |
# focus or send to the given desktop | |
super + {_,shift + }{1-9,0} | |
bspc {desktop -f,node -d} '^{1-9,10}' | |
# 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} | |
# floating terminal | |
super + shift + Return | |
alacritty --title alacritty-floating --option window.opacity=0.8 --option "colors.primary.background='#000000'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment