1 2 3 4 5 6
#/bin/bash command="glava --desktop" [[ -n $( pgrep -f "$command" ) ]] && pkill -f "$command" || nohup $command > /dev/null 2>&1 &