olimorris / tmux-pomodoro-plus

🍅 Incorporate the Pomodoro technique into your tmux workflow
MIT License
274 stars 23 forks source link

Beep unix #18

Closed lbartoletti closed 1 year ago

lbartoletti commented 1 year ago

This is a PR to add a sound on unix (linux, bsd). Well ... in fact, it's a noisy beep(1), but it's portable and doesn't require files.

olimorris commented 1 year ago

Thanks so much for the PR. I'm on macOS so don't have any knowledge of the Linux eco system. Are there any other system sounds to call via the $sound variable?

lbartoletti commented 1 year ago

You can use other audio sound system (Alsa, PulseAudio, OSS, etc). But beep, it's simple, portable and doesn't require any dependency.

You could also propose an audio file for the end of a session, another one for the end of a break, etc. But this requires a dependency (mpv for example) that can read the files (ogg, flac, etc)

But it requires adding sounds, so beep is already good at first and it does the job perfectly. :)

olimorris commented 1 year ago

LGTM and thanks for your efforts!