Skip to content

Instantly share code, notes, and snippets.

@philjackson
Created September 1, 2015 11:21
Show Gist options
  • Save philjackson/f98072a0aa67f368dc6c to your computer and use it in GitHub Desktop.
Save philjackson/f98072a0aa67f368dc6c to your computer and use it in GitHub Desktop.
Simple alarm for linux
#!/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