diff options
Diffstat (limited to 'xalarm')
| -rwxr-xr-x | xalarm | 7 | 
1 files changed, 6 insertions, 1 deletions
@@ -52,7 +52,7 @@ function xalarm_cancel {  # Usage  function xalarm_usage { -  echo "usage: $BASENAME [list|cancel|kill|help|usage] [timedef] [message]" +  echo "usage: $BASENAME [list|cancel|kill|help|usage|loop] [timedef] [message]"    exit 1  } @@ -63,6 +63,11 @@ elif [ "$1" == "cancel" ] || [ "$1" == "kill" ]; then    xalarm_cancel $2  elif [ "$1" == "help" ] || [ "$1" == "usage" ]; then    xalarm_usage +elif [ "$1" == "loop" ]; then +  shift +  while true; do +    xalarm_set $* +  done  else    xalarm_set $*  fi  | 
