[sxhkd] add new definitions for super {p,s,f}
authorAmin Bandali <me@aminb.org>
Thu, 24 Dec 2015 03:13:48 +0000 (22:13 -0500)
committerAmin Bandali <me@aminb.org>
Thu, 24 Dec 2015 03:13:48 +0000 (22:13 -0500)
bspc window -t doesn't toggle anymore, but only sets

sxhkd/.config/sxhkd/sxhkdrc

index 646653f..0669cfa 100644 (file)
@@ -14,8 +14,10 @@ super + t
 super + b
        bspc desktop -B
 
 super + b
        bspc desktop -B
 
-super + {s,f}
-       bspc window -t {floating,fullscreen}
+super + {p,s,f}
+       state={pseudo_tiled,floating,fullscreen}; \
+       bspc query -W -w "focused.$\{state\}" && state=tiled; \
+       bspc window -t "$state"
 
 super + {grave,Tab}
        bspc {window,desktop} -f last
 
 super + {grave,Tab}
        bspc {window,desktop} -f last