Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This script asks the user for a time, waits the specified amount
- # of time, and shows an alert and zenity dialog and computer speaks
- # to say the timer is expired
- #requires zenity, espeak, and Unity's notify-send
- #If you're using a distro other than Ubuntu just comment out the notify-send line
- TIME=$(zenity --entry --title="Timer" --text="Enter a duration for the timer.\n\n Use 5s for 5 seconds, 10m for 10 minutes, or 2h for 2 hours." 2>/dev/null);
- clear;
- echo -e "zenTimer is active...\nSet for $TIME";
- sleep $TIME;
- notify-send "Timer Has Expired!" \ "It has been $TIME.";
- espeak -s 130 -ven+m3 "The timer expired. The timer is finished, goodbye.";
- zenity --info --title="Timer Expired" --text="The timer is done.\n\n It has been $TIME." 2>/dev/null;
- clear;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement