TheCynicalLiger b74ec1cf8f
first commit
2021-01-09 17:30:42 +00:00

19 lines
291 B
Bash
Executable File

#!/bin/bash
check_install() {
if [[ ! $(type $1 2>/dev/null) ]]; then
echo "Error: missing command '$1'. Exiting."
exit 1
fi
}
check_install xdo
check_install xprop
if pgrep -x "polybar" > /dev/null
then
killall polybar
else
~/.config/polybar/launch.sh
fi