Toggle fullscreen mode

This commit is contained in:
Thomas Dehaeze 2019-12-30 21:19:33 +01:00
parent 6c62482fc5
commit 95d17a4693

View File

@ -217,7 +217,7 @@ super + shift + d
** Monocle Layout ** Monocle Layout
#+begin_src conf #+begin_src conf
# alternate between the tiled and monocle layout # alternate between the tiled and monocle layout
super + f super + m
bspc desktop -l next bspc desktop -l next
# focus the next/previous node in the current desktop # focus the next/previous node in the current desktop
@ -227,10 +227,20 @@ super + shift + d
** Set the window State ** Set the window State
#+begin_src conf #+begin_src conf
# set the window state # Set the window state to tiled
super + {t, shift + f} super + t
bspc node -t {tiled,fullscreen} 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 super + s
if [ -z "$(bspc query -N -n focused.floating)" ]; then \ if [ -z "$(bspc query -N -n focused.floating)" ]; then \
bspc node focused -t floating; \ bspc node focused -t floating; \