Created
July 5, 2022 18:19
-
-
Save progrium/790e9539e296a0f72f326ec66d327c91 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
apptron app indicator - ./icon.png <<MENU | | |
Timers | |
5 seconds | |
10 seconds | |
30 seconds | |
Say Hello | |
--- | |
Quit | |
MENU | |
while read line; do | |
case $line in | |
"Say Hello") | |
echo "Hello there!" | |
;; | |
*) | |
(sleep "${line%% *}" && | |
apptron shell notification "Timer" "$line")& | |
;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment