summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-18 21:04:02 -0400
committerDavid Robillard <d@drobilla.net>2015-10-18 21:04:02 -0400
commit22d7c4d75fbc352a01a5d4715eaaaf0512d1471a (patch)
tree7231bf4271c65ee2815fdca15e5c4b315cb7f183
parentd9cb18003c9d12871a0c0406c8b1899e7e6f9d07 (diff)
downloaddotfiles-22d7c4d75fbc352a01a5d4715eaaaf0512d1471a.tar.gz
dotfiles-22d7c4d75fbc352a01a5d4715eaaaf0512d1471a.tar.bz2
dotfiles-22d7c4d75fbc352a01a5d4715eaaaf0512d1471a.zip
Improve panel integration
-rwxr-xr-xbspwm/bspwmrc4
-rw-r--r--sxhkd/sxhkdrc21
2 files changed, 22 insertions, 3 deletions
diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc
index dad610d..eb7db55 100755
--- a/bspwm/bspwmrc
+++ b/bspwm/bspwmrc
@@ -1,5 +1,7 @@
#! /bin/sh
+export PANEL_HEIGHT=16
+
bspc config border_width 2
bspc config window_gap 12
@@ -9,7 +11,7 @@ bspc config gapless_monocle true
bspc config focus_by_distance true
bspc config focused_border_color "#6F7372"
-bspc config top_padding 26
+bspc config top_padding $PANEL_HEIGHT
bspc config focus_follows_pointer true
bspc monitor -d 1 2 3 4 5 6 7 8 9
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