Created
September 1, 2015 11:21
-
-
Save philjackson/f98072a0aa67f368dc6c to your computer and use it in GitHub Desktop.
Simple alarm for linux
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
#!/usr/bin/env bash | |
time="${1}" | |
if [[ -z ${time} ]]; then | |
echo "Need a time to ring!" >&2 | |
exit 1 | |
fi | |
echo "DISPLAY=:0 xmessage alarm" | at ${time} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment