darkretailer / gnome-shell-extension_maxi

GNOME Shell extension that made windows maximized vertical on start.
MIT License
4 stars 1 forks source link

zenity #3

Open kerry-s opened 2 years ago

kerry-s commented 2 years ago

i use zenity to create gui apps, how to add to ignore list?

kerry-s commented 2 years ago

example code:

!/bin/dash

EXIT=$(zenity --info --title="Exit" --text=" Exit Options " --icon-name="system-shutdown" --no-wrap --ok-label="Cancel" --extra-button="Shutdown" --extra-button="Reboot" --class="Exit" --name="Exit" --window-icon="system-shutdown")

if [ "$EXIT" = "Shutdown" ]; then systemctl poweroff fi if [ "$EXIT" = "Reboot" ]; then systemctl reboot fi

exit 0