aboutsummaryrefslogtreecommitdiff
path: root/core/toggle
blob: bfb96d263a05a9f1e2dcaeedb9a6ce0279523321 (plain)
1
2
3
4
5
6
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