mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 23:59:36 +01:00
17 lines
464 B
Bash
17 lines
464 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
## Copyright (C) 2020-2021 Aditya Shakya <adi1090x@gmail.com>
|
||
|
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3
|
||
|
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||
|
|
||
|
|
||
|
# 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 the bar
|
||
|
polybar -q main -c "$DIR"/config.ini &
|