summaryrefslogtreecommitdiffstats
path: root/bspwm
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-10 14:34:34 +0100
committerDavid Robillard <d@drobilla.net>2017-12-10 14:39:53 +0100
commit06fa1112f320e0cc74521685534d8fb3cf221cc6 (patch)
tree7654b736165d2b7b14f2a2ba1f305a841f6170fc /bspwm
parentd2da4e5d2866083b8159f57eb04da01662b0dc17 (diff)
downloaddotfiles-06fa1112f320e0cc74521685534d8fb3cf221cc6.tar.gz
dotfiles-06fa1112f320e0cc74521685534d8fb3cf221cc6.tar.bz2
dotfiles-06fa1112f320e0cc74521685534d8fb3cf221cc6.zip
Clean up bspwmrc
Diffstat (limited to 'bspwm')
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc45
1 files changed, 22 insertions, 23 deletions
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc
index 1485f63..908904b 100755
--- a/bspwm/.config/bspwm/bspwmrc
+++ b/bspwm/.config/bspwm/bspwmrc
@@ -1,31 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-export PANEL_FIFO=/home/drobilla/bspwmpanel.fifo
-export PANEL_HEIGHT=48
-export PANEL_FONT="DejaVu Sans Mono-16"
-export TRAY_HEIGHT=28
-export SCREEN_WIDTH="$(xrandr | grep '*' | sed 's/ *\([0-9]*\)x.*/\1/')"
-export TRAY_X="$(echo "$SCREEN_WIDTH - 300" | bc)"
-export TRAY_Y=4
+export PANEL_PAD=18
+export PANEL_NAME="Top Expanded Edge Panel"
-bspc config border_width 2
-bspc config window_gap 12
-
-bspc config split_ratio 0.50
-bspc config borderless_monocle true
-bspc config gapless_monocle true
-bspc config focus_by_distance true
-
-bspc config normal_border_color "#2D3232"
-bspc config focused_border_color "#6F7372"
-bspc config top_padding $PANEL_HEIGHT
+bspc config border_width 2
+bspc config window_gap 12
+bspc config split_ratio 0.50
+bspc config borderless_monocle true
+bspc config gapless_monocle false
+bspc config normal_border_color "#2D3232"
+bspc config focused_border_color "#6F7372"
+bspc config top_padding $PANEL_PAD
bspc config focus_follows_pointer true
bspc monitor -d 1 2 3 4 5 6 7 8 9
-hsetroot -solid "#000"
+# Make idempotent
+killall sxhkd
+killall xdotool
+
+# Load keybindings
xmodmap ~/.Xmodmap
sxhkd &
-#~/.config/bspwm/panel &
-#stalonetray -bg "#000" --geometry "1x1+$TRAY_X+$TRAY_Y" --grow-gravity E -i $TRAY_HEIGHT &
-#xdotool search --classname stalonetray windowraise
+
+# Show panel when mouse is on top edge
+xdotool behave_screen_edge --delay 250 --quiesce 250 top search --name "Top Expanded Edge Panel" windowmap exec "bspc config top_padding $PANEL_PAD" &
+
+# Hide panel when mouse is on bottom edge
+xdotool behave_screen_edge --delay 250 --quiesce 250 bottom search --name "Top Expanded Edge Panel" windowunmap exec bspc config top_padding 0 &