#!/bin/bash
if [ "$#" -lt 1 ]; then
echo "Usage: $0 <arg1>"
exit
fi
if [ "$#" -lt 1 ]; then
echo "Usage: $0 <arg1>"
exit
fi
zenity --question --width=100 --ok-label="Shutdown anyway" --cancel-label="Cancel" --title="Shutdown reminder" --text="Shutdown now?"
status="$?"
if [ "$status" = 0 ]; then
zenity --info --width=100 --title="Cancel Shutdown" --text="Cancel Shutdown"
fi
else
gnome-session-quit --power-off
fi
cf: https://askubuntu.com/questions/1237825/how-to-turn-off-software-updater-pop-up-notification
Check with:
gsettings get com.ubuntu.update-notifier no-show-notifications
If shows true, done.