diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-06-13 00:51:47 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-06-13 00:51:47 +0530 |
| commit | 447ad9dc6afc9d3efb733f4f0a8688acae54f6a6 (patch) | |
| tree | a728738b430a944821a22cba5333d57f0b237d9f | |
| parent | 76862ae6496eaad52d697fa9bd236a03cfe7321f (diff) | |
| download | pomoru-447ad9dc6afc9d3efb733f4f0a8688acae54f6a6.tar.xz pomoru-447ad9dc6afc9d3efb733f4f0a8688acae54f6a6.zip | |
include session info in exported status
| -rw-r--r-- | src/pomo/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pomo/mod.rs b/src/pomo/mod.rs index 22deb4a..bff80a9 100644 --- a/src/pomo/mod.rs +++ b/src/pomo/mod.rs @@ -28,8 +28,14 @@ impl Pomo { SessionMode::Work => "Work", }; + let icon = match self.mode { + SessionMode::Work => "", + SessionMode::ShortBreak => "", + SessionMode::LongBreak => "", + }; + CurrentStatus { - text: format_duration(self.time_remaining), + text: format!("{icon} {tooltip} {}", format_duration(self.time_remaining)), tooltip: tooltip.to_string(), class: class.to_string(), } |