diff options
Diffstat (limited to '.config/polybar/launch.sh')
| -rwxr-xr-x | .config/polybar/launch.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index 0f657c9..1e94ee3 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh | |||
| @@ -1,15 +1,14 @@ | |||
| 1 | #!/bin/bash | 1 | #!/usr/bin/env bash |
| 2 | |||
| 3 | # Try your luck one last time | ||
| 4 | # fc-cache -fv | ||
| 5 | 2 | ||
| 6 | # Terminate already running bar instances | 3 | # Terminate already running bar instances |
| 7 | killall -q polybar | 4 | # killall -q polybar |
| 8 | 5 | ||
| 9 | # Wait until the processes have been shut down | 6 | # If all your bars have ipc enabled, you can also use |
| 10 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done | 7 | polybar-msg cmd quit |
| 11 | 8 | ||
| 12 | # Launch bar | 9 | # Launch bar |
| 13 | polybar top & | 10 | # Launch bar1 and bar2 |
| 11 | echo "---" | tee -a /tmp/polybar.top.log | ||
| 12 | polybar top 2>&1 | tee -a /tmp/polybar.top.log & disown | ||
| 14 | 13 | ||
| 15 | echo "Bar launched..." | 14 | echo "Bar launched..." |
