diff --git a/dotfiles/sxhkd.org b/dotfiles/sxhkd.org index 75cf597..dbbeb7e 100644 --- a/dotfiles/sxhkd.org +++ b/dotfiles/sxhkd.org @@ -217,7 +217,7 @@ super + shift + d ** Monocle Layout #+begin_src conf # alternate between the tiled and monocle layout - super + f + super + m bspc desktop -l next # focus the next/previous node in the current desktop @@ -227,10 +227,20 @@ super + shift + d ** Set the window State #+begin_src conf - # set the window state - super + {t, shift + f} - bspc node -t {tiled,fullscreen} + # Set the window state to tiled + super + t + bspc node -t tiled + + # Toggle Fullscreen State + super + f + if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \ + bspc node focused -t fullscreen; \ + else \ + bspc node focused -t tiled; \ + fi + + # Toggle Floating State super + s if [ -z "$(bspc query -N -n focused.floating)" ]; then \ bspc node focused -t floating; \