dotfiles/config/lemonbar/launch.sh

16 lines
294 B
Bash
Raw Normal View History

2018-10-06 10:27:36 +02:00
#!/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