dots/.bin/toggle-tint_ob.sh

13 lines
215 B
Bash
Executable File

#!/bin/bash
# vars
# pid="$(pidof tint2)"
pid="$(ps aux | grep my_ob.tint2rc | grep -v grep | awk -n '{print $2}')"
# exec
if test "$pid"; then
kill -9 "$pid"
else
tint2 -c $HOME/.config/tint2/my_ob.tint2rc
fi