I have never written a script with a GUI element before as most of my scripts don't need it.
I tried this:
But it gives errors:Code:
zenity --question --title="Restart Conky" --text "Are you sure you want to restart Conky?" ;echo $?
if [ $? == "0" ] ;
then killall conky
Just wondering what I've done wrong.Code:
[: 6: 0: unexpected operator
EDIT: so far this is just for testing. Could I change it to???Code:
then killall conky && sleep 5 && conky