Page 1 of 1

CLI play music?

Posted: Mon Nov 07, 2022 6:28 pm
by olympus1112
Does anyone know if you can make the cli will play a sound file when you do something it is listed for?
Like for instance play a sound when you open a file, or close one

Re: CLI play music?

Posted: Mon Nov 07, 2022 6:34 pm
by yoshi
playing the sound is not the problem - there are CLI sound players like

Code: Select all

Package: mpv
Version: 0.32.0-3
The challenge is to monitor or to get a trigger when the desired event occurs.

Re: CLI play music?

Posted: Tue Nov 08, 2022 12:05 am
by asqwerth
Doesn't XFCE have event sounds that you can activate?

Re: CLI play music?

Posted: Tue Nov 08, 2022 1:37 pm
by yoshi
I know about startup and shutdown sound, but don't know about any event sounds.
I was thinking along the lines of
- script in background monitoring for event (dbus, or wherever you can get the events)
- on event play sound using mpv

But as I said, the challenge is to get the events - can't help you there unfortunately

PS: found this for event sounds
https://mxlinux.org/wiki/help-files/hel ... em-sounds/
But don't know which events are covered