Update launchers

This commit is contained in:
Andrew Scott 2023-03-23 20:02:58 -04:00
parent a940d6e6e0
commit 37518579c9
Signed by: a
GPG key ID: 7CD5A5977E4931C1
3 changed files with 10 additions and 7 deletions

View file

@ -7,7 +7,8 @@ killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch Polybar, using default config location ~/.config/polybar/config
polybar one -r --config=~/.config/polybar/config.ini &
polybar two -r --config=~/.config/polybar/config.ini &
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
polybar one -r --config=~/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar1.log & disown
polybar two -r --config=~/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar2.log & disown
echo "Polybar launched..."

View file

@ -1,13 +1,14 @@
#!/bin/bash
# Terminate already running bar instances
killall -q polybar
#killall -q polybar # needed if ipc disabled
polybar-msg cmd quit
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch Polybar, using default config location ~/.config/polybar/config
polybar one -r --config=~/.config/polybar/config.ini &
#polybar two -r --config=~/.config/polybar/config.ini &
# Launch Polybar
echo "---" | tee -a /tmp/polybar.log
polybar one -r --config=~/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar.log & disown
echo "Polybar launched..."

View file

@ -7,7 +7,8 @@ killall -q tint2
while pgrep -u $UID -x tint2 >/dev/null; do sleep 1; done
# Launch tint2
tint2 & disown
echo "---" | tee -a /tmp/tint2.log
tint2 2>&1 | tee -a /tmp/tint2.log & disown
# Final command won't work without sleep
sleep 1 &&