diff options
author | Yigit Sever | 2019-03-17 23:09:49 +0300 |
---|---|---|
committer | Yigit Sever | 2019-03-17 23:18:28 +0300 |
commit | ea211500227aa58f5e495777743c5d391cbc3110 (patch) | |
tree | afa2b455f9fea40b45dbf8a742c0d0d498024edb /.config/polybar/launch.sh | |
download | dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.tar.gz dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.tar.bz2 dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.zip |
Initial commit
diffstat (limited to '.config/polybar/launch.sh')
-rwxr-xr-x | .config/polybar/launch.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100755 index 0000000..e6c42ff --- /dev/null +++ b/.config/polybar/launch.sh | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/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..." | ||