From e6c1cacb60010ec75e02cf72acf34278417670fd Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 11 Mar 2024 18:33:02 +0100 Subject: initial commit (basic functionality) --- core/pause | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 core/pause (limited to 'core/pause') diff --git a/core/pause b/core/pause new file mode 100755 index 0000000..a55bd30 --- /dev/null +++ b/core/pause @@ -0,0 +1,13 @@ +#!/bin/sh +[ "$1" = "info" ] && echo "pause the timer" && exit 2 + +. "$core_path/lib" +. "$core_path/update" + +[ "$state" != 'running' ] && err "timer is not running" + +time="$("$time - $now" | bc)" +state='paused' + +save_state + -- cgit v1.2.3