Thanks but after 3.0 the progress bar no longer works.rufwoof wrote:This will do the same using yad, with the button labels you prefer. Just modify the SHUTDOWNCOMMAND to actually run your shutdown command instead of running geanyCode: Select all
#!/bin/bash SHUTDOWNCOMMAND=geany ( echo "99" ; sleep 1 echo "90" ; sleep 1 echo "80" ; sleep 1 echo "70" ; sleep 1 echo "60" ; sleep 1 echo "50" ; sleep 1 echo "40" ; sleep 1 echo "30" ; sleep 1 echo "20" ; sleep 1 echo "10" ; sleep 1 ) | yad --progress --title="$TITLE $VERSION" --text=" Are you sure you want to shutdown? \n\n Turning off computer in 10 seconds \n\n Press Cancel to abort shutdown " \ --percentage=0 --auto-close --auto-kill --button=CANCEL:1 --button=SHUTDOWN:0 [[ $? -eq 0 ]] && $SHUTDOWNCOMMAND
So many changes as the newer versions are not backward compatible. No gtk-icons support, right-click notification menu no longer works, entry is deprecated...
It's in quiet unstable now. Probably even more stuff will be removed when the old obsolete code derived from zenity is removed.