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/toggle | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 core/toggle (limited to 'core/toggle') diff --git a/core/toggle b/core/toggle new file mode 100755 index 0000000..bfb96d2 --- /dev/null +++ b/core/toggle @@ -0,0 +1,7 @@ +#!/bin/sh +[ "$1" = "info" ] && echo "toggle the timer between running and paused" && exit 2 + +. "$core_path/update" + +[ "$state" = 'running' ] && exec "$prog" pause || exec "$prog" start + -- cgit v1.2.3