ayoisaiah / focus

A fully featured productivity timer for the command line, based on the Pomodoro Technique. Supports Linux, Windows, and macOS.
https://github.com/ayoisaiah/focus
MIT License
437 stars 21 forks source link

Necessary requirement #8

Closed juba0x00 closed 1 year ago

juba0x00 commented 1 year ago

I really love this application, It's the best Pomodoro app I have ever used, but there is one annoying problem.

Add Notification Sound

ayoisaiah commented 1 year ago

@juba0x00 Thanks for reporting this. This will be fixed soon and included in the next release

juba0x00 commented 1 year ago

@ayoisaiah I think #6 is an excellent alternative to my suggestion. I tried to use --short-break-cmd=command option, But it didn't work.

focus --short-break-cmd=beep 
Incorrect Usage. flag provided but not defined: -short-break-cmd
[REDACTED HELP MENU]
ERROR  flag provided but not defined: -short-break-cmd

How can I use It?

ayoisaiah commented 1 year ago

@juba0x00 I'll release a new version today with the necessary fixes.

ayoisaiah commented 1 year ago

@juba0x00 I've added this feature but still need to cleanup a few things before releasing. Could you please build from source to test it out?

You don't need to add any option, it should use the system notification sound automatically.

If you want to run arbitrary commands after a session, you can use the new --session-cmd option.

juba0x00 commented 1 year ago

@ayoisaiah --session-cmd option is working properly, but there is no notification sound by default. I'll use --session-cmd option to play sound.

Screenshot_20221128_105400

ayoisaiah commented 1 year ago

@juba0x00 Do you have notification sounds enabled in your system settings?