diff options
Diffstat (limited to 'home/.selfconfigs/zsh/functions/timer')
-rw-r--r-- | home/.selfconfigs/zsh/functions/timer | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/.selfconfigs/zsh/functions/timer b/home/.selfconfigs/zsh/functions/timer new file mode 100644 index 0000000..4978d4f --- /dev/null +++ b/home/.selfconfigs/zsh/functions/timer @@ -0,0 +1,9 @@ +function timer() +{ + if [ $# -lt 2 ]; then + echo usage: timer [SLEEP_TIME] [MESSAGE] + else + echo Timer set for $1: $2 + $(sleep $1; notify-send "$2") > /dev/null & disown + fi +} |