Last active
January 28, 2018 17:12
-
-
Save kwart/45556cfad93b4f275778301b39b69049 to your computer and use it in GitHub Desktop.
Dialog based script which shuts down the machine after given amount of time.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if timeoutMin=$(zenity --entry --text "Shutdown in (min)" --entry-text "30" --title "Shutdown?"); then | |
sudo shutdown -P ${timeoutMin} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment