From 0e17b7a981d2e6450434db5d0aaebd43c379f58a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 9 Aug 2025 22:55:40 +0700 Subject: [PATCH] TimerService: add back emojis, make reset also reset isLongBreak --- .config/quickshell/ii/services/TimerService.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/services/TimerService.qml b/.config/quickshell/ii/services/TimerService.qml index 297a1c204..651af1b05 100644 --- a/.config/quickshell/ii/services/TimerService.qml +++ b/.config/quickshell/ii/services/TimerService.qml @@ -60,11 +60,11 @@ Singleton { // Send notification let notificationMessage; if (Persistent.states.timer.pomodoro.isLongBreak) { - notificationMessage = Translation.tr(`Relax for %1 minutes`).arg(Math.floor(longBreakTime / 60)); + notificationMessage = Translation.tr(`🌿 Long break: %1 minutes`).arg(Math.floor(longBreakTime / 60)); } else if (Persistent.states.timer.pomodoro.isBreak) { - notificationMessage = Translation.tr(`Relax for %1 minutes`).arg(Math.floor(breakTime / 60)); + notificationMessage = Translation.tr(`☕ Break: %1 minutes`).arg(Math.floor(breakTime / 60)); } else { - notificationMessage = Translation.tr(`Focus for %1 minutes`).arg(Math.floor(focusTime / 60)); + notificationMessage = Translation.tr(`🔴 Focus: %1 minutes`).arg(Math.floor(focusTime / 60)); } Quickshell.execDetached(["notify-send", "Pomodoro", notificationMessage, "-a", "Shell"]); @@ -98,6 +98,7 @@ Singleton { function resetPomodoro() { Persistent.states.timer.pomodoro.running = false; Persistent.states.timer.pomodoro.isBreak = false; + Persistent.states.timer.pomodoro.isLongBreak = false; Persistent.states.timer.pomodoro.start = getCurrentTimeInSeconds(); Persistent.states.timer.pomodoro.cycle = 0; refreshPomodoro();