#!/bin/sh export PANEL_PAD=36 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 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 bspc rule -a Emacs state=tiled # Make idempotent killall -q sxhkd killall -q xdotool # Load keybindings xmodmap ~/.Xmodmap sxhkd & # Show panel when mouse is on top edge xdotool behave_screen_edge --delay 1000 top search --name "Top Expanded Edge Panel" windowmap exec bspc config top_padding $PANEL_PAD > /dev/null & # Hide panel when mouse is on bottom edge xdotool behave_screen_edge --delay 1000 bottom search --name "Top Expanded Edge Panel" windowunmap exec bspc config top_padding 0 > /dev/null &