diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index e035692c..06561f40 100644 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -43,6 +43,9 @@ offset-y = ${POLYBAR_OFFSET_XY:-0} border-size = ${POLYBAR_BORDER_SIZE:-0} EOL +# Save the top_padding amount for use by other scripts +echo $BSPWM_TOP_PADDING > $HOME/.cache/polybar/bspwm_top_padding + # Wait until there are no more polybar instances running while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 014ab620..ce8d8ff4 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -21,7 +21,7 @@ super + {_,shift} + backslash super + o (xdotool search --class --onlyvisible "Polybar" && \ (xdo hide -N "Polybar" && bspc config top_padding 0)) || \ - (xdo show -N "Polybar" && bspc config top_padding 80) + (xdo show -N "Polybar" && bspc config top_padding $(cat ~/.cache/polybar/bspwm_top_padding)) # Change the wal color scheme alt + m