diff options
Diffstat (limited to 'polybar/.config/polybar/launch')
-rwxr-xr-x | polybar/.config/polybar/launch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/polybar/.config/polybar/launch b/polybar/.config/polybar/launch new file mode 100755 index 0000000..c39a374 --- /dev/null +++ b/polybar/.config/polybar/launch | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | # Terminate already running bar instances | ||
4 | killall -q polybar | ||
5 | |||
6 | # Wait until the processes have been shut down | ||
7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done | ||
8 | |||
9 | # Launch bar1 and bar2 | ||
10 | polybar top & | ||
11 | |||
12 | echo "Bars launched..." | ||