diff options
author | 2020-07-09 20:24:58 +0200 | |
---|---|---|
committer | 2020-07-09 20:24:58 +0200 | |
commit | dee7b5307b08032022cc4d4e2a4c0dfde39d7790 (patch) | |
tree | a7cec95fca2a23caf795e6912a709e16873c7b0d /i3/start_polybar.sh | |
parent | a9690e0cd99897365941b9ccc2bfe8f08e93a58b (diff) | |
download | dotfiles-dee7b5307b08032022cc4d4e2a4c0dfde39d7790.tar.gz |
i3 move to .config
Diffstat (limited to 'i3/start_polybar.sh')
-rwxr-xr-x | i3/start_polybar.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/i3/start_polybar.sh b/i3/start_polybar.sh new file mode 100755 index 0000000..38b46f6 --- /dev/null +++ b/i3/start_polybar.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Terminate already running bar instances +killall -q polybar + +# Wait until the processes have been shut down +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +# Launch Polybar, using default config location ~/.config/polybar/config +polybar $1 & + +echo "Polybar launched..." |