16 lines
294 B
Bash
Executable file
16 lines
294 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# TODO Make this better
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
ex="$DIR/bar.py"
|
|
|
|
# Terminate already running bar instances
|
|
ps -af | grep "python3 $ex" | grep -v grep | awk '{print $2}' | while read p; do kill $p; done
|
|
killall -q lemonbar
|
|
|
|
$ex
|
|
|
|
|