From 95d17a469346704203e11d83c9260e7b05be037a Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Mon, 30 Dec 2019 21:19:33 +0100 Subject: [PATCH] Toggle fullscreen mode --- dotfiles/sxhkd.org | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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; \