summaryrefslogtreecommitdiffstats
path: root/.config/polybar/launch.sh
diff options
context:
space:
mode:
authorYigit Sever2019-03-17 23:09:49 +0300
committerYigit Sever2019-03-17 23:18:28 +0300
commitea211500227aa58f5e495777743c5d391cbc3110 (patch)
treeafa2b455f9fea40b45dbf8a742c0d0d498024edb /.config/polybar/launch.sh
downloaddotfiles-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.sh12
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
4killall -q polybar
5
6# Wait until the processes have been shut down
7while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
8
9# Launch bar1 and bar2
10polybar top &
11
12echo "Bars launched..."