aboutsummaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-12 09:02:24 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-12 09:02:24 +0100
commitd3b396b17602ad71a62cbc2eaf595a1d94579c4a (patch)
tree3be5e49c5d9081ac3de4cd34b64b47ada23e9a22 /core/config
parente6c1cacb60010ec75e02cf72acf34278417670fd (diff)
make state update atomic and clean up some code
Diffstat (limited to 'core/config')
-rw-r--r--core/config2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/config b/core/config
index 34c96b8..aedd4f3 100644
--- a/core/config
+++ b/core/config
@@ -1,4 +1,5 @@
#!/bin/sh
+
# initialize default configuration values
export POMODORO_STATE_PATH="${POMODORO_STATE_PATH:-$XDG_CACHE_HOME/$progname}" # ~/.cache/dppt
export POMODORO_NORMAL_DURATION="${POMODORO_NORMAL_DURATION:-$(( 25 * 60 ))}" # 25 minutes
@@ -6,3 +7,4 @@ export POMODORO_BREAK_SHORT_DURATION="${POMODORO_BREAK_SHORT_DURATION:-$(( 5 * 6
export POMODORO_BREAK_LONG_DURATION="${POMODORO_BREAK_LONG_DURATION:-$(( 15 * 60 ))}" # 15 minutes
export POMODORO_BREAK_SHORT_INTERVAL="${POMODORO_BREAK_INTERVAL:-2}" # every other lap
export POMODORO_BREAK_LONG_INTERVAL="${POMODORO_BREAK_INTERVAL:-6}" # every 3rd break
+