From 0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sun, 14 Apr 2024 06:38:49 +0200 Subject: squashed init --- home/.selfconfigs/zsh/functions/timer | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 home/.selfconfigs/zsh/functions/timer (limited to 'home/.selfconfigs/zsh/functions/timer') 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 +} -- cgit v1.2.3-70-g09d2