focus
focus copied to clipboard
Play sound after session or breaks
Is it possible to play a sound after a session and after break (like a beep or notification sound) in addition to the system notification?
@jonnieey It's possible to play ambient sounds, but I'll look into adding support for a beeping sound soon
@ayoisaiah Like not during a session or a break, when a sesion or a break ends. For example, when we transition from a task session to a break session, play a beep on that transition to notify of change.
--notification-sound beep
or -ns beep
@jonnieey Yes I understand, thanks for the clarification. Will get it done soon :)
Or maybe allow user to run custom commands for each transition or event. eg --short-break-cmd = paplay beep.mp3
Or maybe allow user to run custom commands for each transition or event. eg
--short-break-cmd = paplay beep.mp3
That makes a lot of sense actually. I'll provide a default and a way to override it 👍
Closed via https://github.com/ayoisaiah/focus/commit/44098660e10998b56c3488787467afd07d8f6114
@jonnieey The default system notification sound should play after each session along with the notification. You can build from source to test it out.
Also, I've added a --session-cmd
option for running arbitrary commands after a session.
@jonnieey The default system notification sound should play after each session along with the notification. You can build from source to test it out.
Also, I've added a
--session-cmd
option for running arbitrary commands after a session.
The cmd arg --session-cmd
works but not from configuration session_cmd
I'm not able to reproduce. Are you on v1.3.0?
Updated and now it works, thanks