This commit is contained in:
2024-12-13 01:01:50 -07:00
parent 0a0a444a2d
commit 2600016096
24 changed files with 330 additions and 139 deletions

View File

@@ -4,11 +4,11 @@
# Open kitty
super + Return
kitty
xfce4-terminal
# Open floating kitty
super + shift + Return
bsp-float kitty
bsp-float xfce4-terminal
# launch program (drun)
super + @space
@@ -29,6 +29,16 @@ super + alt + Menu
super + o
qutesearch
# Preselect below and start a qutebrowser search
super + p
bspc node -p south -o 0.01 \
&& qutesearch \
|| bspc node -p cancel
# Grab color
Print
grabc | xclip -sel clipboard
# Show keybinds
super + slash
sxhkd-help
@@ -78,29 +88,23 @@ super + {_,shift + }w
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc node -s biggest.window
# Reveal hidden kitty (scratchpad)
super + alt + Return
bsp-toggle-visibility KittyScratch "kitty --class KittyScratch"
# Plumb selected text
super + c
eval $(sselp | goawk $(cat ~/plumber.awk))
#
# state/flags
#
# set the window state
super + {z,shift + z,x,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# toggle window state
super + c
bspc node 'focused.!tiled' -t tiled || bspc node 'focused.!floating' -t floating
# bspc node 'focused.!pseudo_tiled' -t pseudo_tiled
# toggle window fullscreen
super + f
bspc node 'focused.!tiled' -t tiled || bspc node 'focused.!fullscreen' -t fullscreen
# set the node flags
super + ctrl + {m,x,y,z}
@@ -110,35 +114,18 @@ super + ctrl + {m,x,y,z}
# focus/swap
#
# focus the node in the given direction
# Focus the node in the given direction
super + {h,j,k,l,Left,Down,Up,Right}
bspc node -{f} {west,south,north,east,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 window in the current desktop
# super + {a,d}
# bspc node -f {next,prev}.local.!hidden.window
# Rotate tree
# Rotate focus clockwise/counterclockwise
super + {d,a}
bspc node @/ -C {forward,backward}
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
bspc node -f {next,prev}.local.window
# 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 or send to the given desktop
super + {_,shift + }{1-6}
bspc {desktop -f,node -d} '^{1-6}'
@@ -160,7 +147,7 @@ super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
# swap current window with preselection
super + p
super + s
bspc node -n last.\!automatic -t tiled
#
@@ -181,6 +168,20 @@ super + {h,j,k,l}
super + shift + {h,j,k,l,Left,Down,Up,Right}
bsp-smove {west,south,north,east,west,south,north,east}
# minimize current window, move down
super + {z,bracketleft}
bspc node -f 'focused.tiled' \
&& bspc node -f north; \
bspc node -z bottom 0 9999
# minimize current window, move up
super + {x,bracketright}
bspc node -f 'focused.tiled' \
&& bspc node -f south; \
bspc node -z top 0 -9999
super + backslash
bspc node -e
#
# Program launching binds
@@ -193,4 +194,28 @@ super + 9
bitwarden
super + 0
kitty --hold sh -c micro
kitty -e micro
#
# Media
#
# Play/pause track
XF86AudioPlay
playerctl play-pause
# Play/pause track
Pause
playerctl play-pause
# Previus track
XF86AudioNext
playerctl next
# Previous track
XF86AudioPrev
playerctl previous
# Stop track
XF86AudioStop
playerctl stop