dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 257fd0403da105ed96dadcb2b2b5162dbdc02580
parent 5d5f655b8c962c090cd899c55cf9141083660af1
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  5 Mar 2018 04:42:56 +0000

.bin: Update alarm.

Diffstat:
.bin/alarm | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.bin/alarm b/.bin/alarm @@ -10,7 +10,7 @@ # # Time in seconds since epoch. -TIME=$(date -d$1 +%s 2> /dev/null); +TIME=$(date --date="$1" +%s 2> /dev/null); if [ -z $TIME ];then echo 'Invalid time' @@ -20,4 +20,5 @@ fi # Calculate delay [ time - current_time ] FOR=$(($TIME - $(date +%s))) +echo "Will disturb in " $FOR "seconds." sleep $FOR; mpc play