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
2024年1月18日 星期四
window dialog using zenity with buttons
訂閱:
張貼留言 (Atom)
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://forums.raspberrypi.com/viewtopic.php?t=278033 For linux: First run the command: route -n It will show the metrics of the i...
-
cf: https://askubuntu.com/questions/1276111/error-upgrading-grub-efi-amd64-signed-special-device-old-ssd-does-not-exist sudo mv /var/cache...
網誌存檔
-
▼
2024
(53)
-
▼
1月
(10)
- bash check number of input arguments
- after composer update error "The website encounter...
- 聯想詞的設定
- Engineering Graphics Lecture Notes, mkEngGraLectur...
- window dialog using zenity with buttons
- find hiddent subdir
- Compress with tar 7z
- software update pop up notification turn off
- Test video nouveau driver nvidia graphic card
- My boshiamy fcitx
-
▼
1月
(10)
沒有留言:
張貼留言