From c4f5e6ee251bfe60468ebf9787016ee4e492f324 Mon Sep 17 00:00:00 2001 From: ktyl Date: Wed, 15 Nov 2023 00:10:31 +0000 Subject: [PATCH] use dwm_bar --- .scripts/bar/launch | 19 +------------------ .scripts/bar/toggle | 21 --------------------- .xinitrc | 4 +++- 3 files changed, 4 insertions(+), 40 deletions(-) delete mode 100755 .scripts/bar/toggle diff --git a/.scripts/bar/launch b/.scripts/bar/launch index 6e6b0cc..b2f94c8 100755 --- a/.scripts/bar/launch +++ b/.scripts/bar/launch @@ -1,20 +1,3 @@ #!/usr/bin/env bash -export BAR_VISIBILITY=$CONFIG/polybar/.visible -[[ -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 +. "$HOME/src/dwm-bar/dwm_bar.sh" diff --git a/.scripts/bar/toggle b/.scripts/bar/toggle deleted file mode 100755 index f7ac5f6..0000000 --- a/.scripts/bar/toggle +++ /dev/null @@ -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 - - - - diff --git a/.xinitrc b/.xinitrc index 14af8e5..ad56564 100644 --- a/.xinitrc +++ b/.xinitrc @@ -27,7 +27,9 @@ udiskie & # notifications dunst & -dwmstatus & +# status bar +#dwmstatus & +sh "$HOME/src/dwm-bar/dwm_bar.sh" & # start window manager exec dwm