dotfiles

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

commit f6c21a004c080612ad76ff496ac3b1294c1a4985
parent 835badcd4b15d3f99898f66ca0678ae23606deaf
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 10 Dec 2017 21:11:16 +0000

.bin: Update timer.

Diffstat:
.bin/timer | 16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/.bin/timer b/.bin/timer @@ -6,14 +6,22 @@ # # Usage # -# $ timer DELAY +# $ timer [SECS] [MINS] # if [ ! -z $1 ]; then - FOR=$1 + SECS=$1 else - FOR=0 + SECS=0 fi -sleep $FOR; mpc play +if [ ! -z $2 ]; then + MINS=$2 +else + MINS=0 +fi +# Calculate delay. +FOR=$(($SECS + ($MINS * 60))) + +sleep $FOR; mpc play