Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
467 stars 92 forks source link

Request: Alarm mode for timer (target time, rather than duration) #104

Open AndydeCleyre opened 4 years ago

AndydeCleyre commented 4 years ago

It would be nice to add an alarm clock feature to the timer component, if the user wants to be alerted at say 5:00 without first calculating the difference between that and the current time, then typing it in very quickly.

Yes, there is kalarm, but eventcalendar comes very close to being able to replace it for simple use with its timer feature already, and kalarm comes with a bit of baggage just for this feature:

Package (21)               New Version  Net Change  Download Size

extra/akonadi-calendar     19.08.2-1      2.18 MiB       0.44 MiB
extra/akonadi-mime         19.08.2-1      0.88 MiB       0.17 MiB
extra/akonadi-notes        19.08.2-1      0.12 MiB       0.03 MiB
extra/akonadi-search       19.08.2-1      1.09 MiB       0.24 MiB
extra/kalarmcal            19.08.2-1      1.02 MiB       0.25 MiB
extra/kcalutils            19.08.2-1      1.63 MiB       0.26 MiB
extra/kdav                 19.08.2-1      0.43 MiB       0.10 MiB
extra/kdepim-runtime       19.08.2-1     16.67 MiB       2.97 MiB
extra/kidentitymanagement  19.08.2-1      0.41 MiB       0.10 MiB
extra/kimap                19.08.2-1      1.00 MiB       0.24 MiB
extra/kldap                19.08.2-1      0.72 MiB       0.19 MiB
extra/kmailtransport       19.08.2-1      1.13 MiB       0.23 MiB
extra/kmbox                19.08.2-1      0.08 MiB       0.03 MiB
extra/kpimtextedit         19.08.2-1      1.12 MiB       0.23 MiB
extra/ksmtp                19.08.2-1      0.17 MiB       0.05 MiB
extra/libkdepim            19.08.2-1      1.79 MiB       0.38 MiB
extra/libkolabxml          1.1.6-12       3.08 MiB       0.58 MiB
extra/pimcommon            19.08.2-1      1.84 MiB       0.38 MiB
extra/qt5-networkauth      5.13.1-1       0.33 MiB       0.08 MiB
extra/xerces-c             3.2.2-1        8.57 MiB       1.33 MiB
extra/kalarm               19.08.2-1     10.93 MiB       2.28 MiB

Total Download Size:   10.58 MiB
Total Installed Size:  55.19 MiB

One way with minimal UI changes to introduce the feature would be to add a button to the "Set Timer" display, alongside "Cancel" and "Start", that would open a clock-like time-picker, then convert that to a timer as usual.

It's debatable if that's a good approach, as pausing the timer would have it drift from its original target alarm time.

Just curious if there is interest from other users or @Zren for integrating alarm-like functionality.

Zren commented 4 years ago

I use a different widget for this: https://github.com/Zren/plasma-applet-systraytimer/

By default it hides in the system tray when not in use. It needs to be cleaned up, but it's functional. I mostly use it as an egg timer on my TV when cooking.

2019-10-25___17-25-08

2019-10-25___17-26-03 2019-10-25___17-26-18

Someone also made a Fokus (Pomodoro) widget which looks like it plays sounds.