use dwm_bar
This commit is contained in:
parent
2ac297bd1c
commit
c4f5e6ee25
|
@ -1,20 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
export BAR_VISIBILITY=$CONFIG/polybar/.visible
|
. "$HOME/src/dwm-bar/dwm_bar.sh"
|
||||||
[[ -f $BAR_VISIBILITY ]] && rm $BAR_VISIBILITY
|
|
||||||
|
|
||||||
# create a file to keep track of the bar's visibility
|
|
||||||
# file exists -> bar visible
|
|
||||||
# file doesnt exist -> bar hidden
|
|
||||||
#touch $BAR_VISIBILITY
|
|
||||||
|
|
||||||
# terminate already running bar instances
|
|
||||||
killall -q polybar
|
|
||||||
|
|
||||||
# wait until the processes have been shut down
|
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|
||||||
|
|
||||||
# launch bar
|
|
||||||
polybar example & # launch bar
|
|
||||||
|
|
||||||
#touch $BAR_VISIBILITY
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
visible=$CONFIG/polybar/.visible
|
|
||||||
barheight=27
|
|
||||||
padding=0
|
|
||||||
|
|
||||||
if [ -f $visible ]; then
|
|
||||||
polybar-msg cmd hide
|
|
||||||
rm $visible
|
|
||||||
else
|
|
||||||
#bspc config top_padding ((padding+$barheight))
|
|
||||||
polybar-msg cmd show
|
|
||||||
((padding=padding+barheight))
|
|
||||||
touch $visible
|
|
||||||
fi
|
|
||||||
|
|
||||||
bspc config top_padding $padding
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue