mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 01:43:10 -05:00
Update launchers
This commit is contained in:
parent
a940d6e6e0
commit
37518579c9
3 changed files with 10 additions and 7 deletions
|
@ -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..."
|
||||
|
|
|
@ -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..."
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue