2024-01-08 20:50:29 +01:00

9 lines
214 B
Bash
Executable File

#!/bin/bash
ps_out=`ps -ef | grep conky | grep -v 'grep' | grep -v $0`
result=$(echo $ps_out | grep "$1")
echo $result
if [[ "$result" != "" ]];then
killall conky
else
conky -c ~/.config/conky/mocha.conf
fi