pika-drivers/data/dialog-success.sh
Ward Nakchbandi (Cosmic Fusion) c6a938f2a0
Update dialog-success.sh
2024-02-21 00:47:27 +03:00

17 lines
396 B
Bash
Executable File

#! /bin/bash
WHO=$(whoami)
if [[ $WHO == "pikaos" ]]; then
zenity --info --text ""$1" has been processed successfully."
else
if echo $1 | grep -i mesa
then
zenity --info --text ""$1" has been processed successfully."
else
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?"
then
systemctl reboot
fi
fi
fi