diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-01-19 02:36:31 +0530 |
|---|---|---|
| committer | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-01-19 02:36:31 +0530 |
| commit | c10dc42334dffdfaf6168fcdaa2962552000cfd1 (patch) | |
| tree | a02d62ded10d23ea85a3ce78c4fcdfe9e89f1b98 /src/pomo/state.rs | |
| parent | f2293afdfc4d67257daf0838db90e029dda485bd (diff) | |
| download | pomoru-c10dc42334dffdfaf6168fcdaa2962552000cfd1.tar.xz pomoru-c10dc42334dffdfaf6168fcdaa2962552000cfd1.zip | |
add more notification msgs
update the ui, footer sits at the bottom of the screen
Diffstat (limited to 'src/pomo/state.rs')
| -rw-r--r-- | src/pomo/state.rs | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/pomo/state.rs b/src/pomo/state.rs index 4c1772f..ec66255 100644 --- a/src/pomo/state.rs +++ b/src/pomo/state.rs @@ -68,15 +68,25 @@ impl Pomo { if self.is_running && self.time_remaining.as_secs() > 0 { self.time_remaining -= Duration::from_secs(1); } else if self.is_running && self.time_remaining.as_secs() == 0 { + let focus_msg = [ + "I'm tired, boss...", + "Congrats! You're him 🗿", + "Stand up. Touch grass.", + "Mission Passed! Respect+", + ]; + let break_msg = [ + "Ah shit, here we go again.", + "Wake up, Samurai. We have code to burn.", + "Lock back in.", + "Ref! Do Something! The break's over!", + ]; + + // Use the remaining duration/break count as a seed for simple 'random' selection + let idx = (self.break_count as usize) % 4; + let (title, msg) = match self.mode { - SessionMode::Work => ( - "Focus Block Complete", - "I'm tired, boss." - ), - _ => ( - "Break Over", - "Ah shit, here we go again." - ), + SessionMode::Work => ("Focus Block Complete", focus_msg[idx]), + _ => ("Break Over", break_msg[idx]), }; self.send_notification(title, msg); |