You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add --url flag to fire HTTP GET on timer finish with response display
- Add ~/.dstimer/defaults.yaml for global default settings
- Add ~/.dstimer/presets.yaml for named timer configurations (e.g. dstimer pomodoro)
- Positional arg now accepts preset names or time values
- TUI skips audio/URL prompts when values are prefilled from config
- Update README with configuration docs, TOC, and new install methods
@@ -17,23 +48,29 @@ Written in Rust for maximum efficiency and portability.
17
48
- Full-width **progress bar**: green → yellow → red as time runs out
18
49
- Interactive **time entry** (HH:MM:SS) when no arguments parsed
19
50
- ♪ Optional **audio file playback** when the timer completes ♪
51
+
- Optional **HTTP call** (`--url`) — fires a GET request on finish and shows the response
52
+
-**YAML presets** — save named presets (e.g. `dstimer pomodoro`) in `~/.dstimer/presets.yaml`
53
+
-**Global defaults** — set default audio, URL, inline/silent in `~/.dstimer/defaults.yaml`
20
54
21
55
## Usage
22
56
23
57
| Flag | Short | Description |
24
58
|------|-------|-------------|
25
-
|`--time`|`-t`|Default argument parsing duration in `HH:MM:SS`, `MM:SS`, or `SS` format |
59
+
|`--time`|`-t`|Duration in `HH:MM:SS`, `MM:SS`, or `SS` format |
26
60
|`--audio`|`-a`| Path to audio file to play on finish |
61
+
|`--url`|`-u`| URL to call (HTTP GET) when timer finishes |
27
62
|`--inline`|`-i`| Inline mode (see below) |
28
63
|`--silent`|| Suppress desktop notifications |
29
64
30
-
### **Interactive mode** (no arguments):
65
+
The positional argument can be a **time value** (`dstimer 25:00`) or a **preset name** (`dstimer pomodoro`). See [Configuration](#configuration) below.
66
+
67
+
### **TUI / Interactive mode** (no arguments):
31
68
32
69
```bash
33
70
dstimer
34
71
```
35
72
36
-
You'll be prompted to enter a duration and an optional audio file path.
73
+
You'll be prompted to enter a duration, an optional audio file path, and an optional URL.
0 commit comments