From 22d7c4d75fbc352a01a5d4715eaaaf0512d1471a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Oct 2015 21:04:02 -0400 Subject: Improve panel integration --- sxhkd/sxhkdrc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'sxhkd') diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index b2b057f..9b98ceb 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -3,7 +3,7 @@ # super + p - bspc config top_padding 26; \ + bspc config top_padding $PANEL_HEIGHT; \ xdotool search --classname Conky windowmap; \ xdotool search --classname stalonetray windowmap; \ xdotool search --classname stalonetray windowraise @@ -13,6 +13,13 @@ super + shift + p xdotool search --classname Conky windowunmap; \ bspc config top_padding 0 +super + s + xdotool search --classname stalonetray windowmap; \ + xdotool search --classname stalonetray windowraise + +super + shift + s + xdotool search --classname stalonetray windowunmap + super + alt + Escape bspc quit @@ -20,7 +27,17 @@ super + w bspc window -c super + t - bspc desktop -l next + bspc desktop -l next; \ + if bspc query --tree | grep -q ' M - \*'; then \ + xdotool search --classname stalonetray windowunmap; \ + xdotool search --classname Conky windowunmap; \ + bspc config top_padding 0; \ + else \ + bspc config top_padding $PANEL_HEIGHT; \ + xdotool search --classname Conky windowmap; \ + xdotool search --classname stalonetray windowmap; \ + xdotool search --classname stalonetray windowraise; \ + fi super + b bspc desktop -B -- cgit v1.2.1