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
CLI play music?
-
- Posts: 28
- Joined: Thu Oct 27, 2022 3:53 pm
CLI play music?
Never underestimate the determination of a kid who is time-rich and cash-poor.
Cory Doctorow
Cory Doctorow
Re: CLI play music?
playing the sound is not the problem - there are CLI sound players like
The challenge is to monitor or to get a trigger when the desired event occurs.
Code: Select all
Package: mpv
Version: 0.32.0-3
Life is too beautiful to observe it through windows. 

Re: CLI play music?
Doesn't XFCE have event sounds that you can activate?
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400
Re: CLI play music?
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
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
Life is too beautiful to observe it through windows. 
