summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2015-12-23 22:13:48 -0500
committerAmin Bandali <me@aminb.org>2015-12-23 22:13:48 -0500
commit9d273a6b304cfd4478395f92b2afbfb452482ad3 (patch)
treee105729e0c6a4c2a7530bf687aa51fcbce4beaaf
parent271181b4f8d4711bb1f53246c8ccddff4b80f6b7 (diff)
downloadconfigs-9d273a6b304cfd4478395f92b2afbfb452482ad3.tar.gz
configs-9d273a6b304cfd4478395f92b2afbfb452482ad3.tar.xz
configs-9d273a6b304cfd4478395f92b2afbfb452482ad3.zip
[sxhkd] add new definitions for super {p,s,f}
bspc window -t doesn't toggle anymore, but only sets
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
index 646653f..0669cfa 100644
--- a/sxhkd/.config/sxhkd/sxhkdrc
+++ b/sxhkd/.config/sxhkd/sxhkdrc
@@ -14,8 +14,10 @@ super + t
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