From a766b96ef189c9f28fa047f4670f3abe827736b7 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Sat, 18 Jul 2020 10:55:45 +0200 Subject: [PATCH] feature : start zoom and autokill it after x minutes --- dot_zsh_functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_zsh_functions b/dot_zsh_functions index 142d706..353bb18 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -280,6 +280,14 @@ function checkenlist() { function checkenremote() { curl -Lks "$1" > /tmp/file && checkenlist /tmp/file + +# Time management +function zoomtimeboxed() { + declare -i total_minutes=$1 + declare -i total_seconds=$total_minutes*60 + echo $total_seconds; + arrow "will start zoom and leave it after $total_minutes minutes ($total_seconds seconds)" + zoom; (sleep "$total_seconds" && nozoom) & } # File stats helpers