diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index a54e75c..67cfd3e 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -1,18 +1,13 @@ #!/usr/bin/env sh +# Terminate already running bar instances killall -q polybar -polybar_proc=$(pgrep -u $UID -x polybar) +# Wait until the processes have been shut down +while pgrep -x polybar >/dev/null; do sleep 1; done -# Terminate already running bar instances -for i in ${polybar_proc} ; do - kill -9 $i -done - -while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done - -# Launch bar top & bottom +# Launch polybar top & polybar bottom & -echo "Bars launched..." +echo "Bar launched..." diff --git a/.xprofile b/.xsession old mode 100755 new mode 100644 similarity index 84% rename from .xprofile rename to .xsession index 0456460..b3d5130 --- a/.xprofile +++ b/.xsession @@ -1,5 +1,3 @@ -#!/bin/sh - wal -R & xset +fp ~/.local/share/fonts & xset fp rehash &