diff options
author | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
commit | a42df546ce34429759a20bc2c4c240de045dbd0a (patch) | |
tree | 4e7153d41d6a1b710f8002f2eb7b64231889b6cf /polybar/.config/polybar/launch.sh |
using stow
Diffstat (limited to 'polybar/.config/polybar/launch.sh')
-rwxr-xr-x | polybar/.config/polybar/launch.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh new file mode 100755 index 0000000..c39a374 --- /dev/null +++ b/polybar/.config/polybar/launch.sh | |||
@@ -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..." | ||