From a4982e767b6e6b95bc816572daa375a5c84f0db8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 19 Oct 2018 13:22:38 -0400 Subject: [PATCH] Truly toggle between tiled and fullscreen I don't know why I couldn't implement it before, but now that I know more about shell scripting, I know that this works. There's an even better solution I found in the bspc man pages, which will be covered in the next commit. --- .config/sxhkd/sxhkdrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index c66e7b64..d95b5fb7 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -92,10 +92,11 @@ super + r # Toggle between tiled and "true" fullscreen super + t - bspc node focused -t fullscreen - -super + shift + t - bspc node focused -t tiled + if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \ + bspc node focused -t fullscreen; \ + else \ + bspc node focused -t tiled; \ + fi # Toggle between floating and tiled (default) # This is the equivalent of a floating window in i3