CLI play music?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
olympus1112
Posts: 28
Joined: Thu Oct 27, 2022 3:53 pm

CLI play music?

#1 Post 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
Never underestimate the determination of a kid who is time-rich and cash-poor.
Cory Doctorow

User avatar
yoshi
Posts: 74
Joined: Mon May 13, 2019 10:16 am

Re: CLI play music?

#2 Post 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.
Life is too beautiful to observe it through windows. :penguin:

User avatar
asqwerth
Developer
Posts: 8043
Joined: Sun May 27, 2007 5:37 am

Re: CLI play music?

#3 Post by asqwerth »

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

User avatar
yoshi
Posts: 74
Joined: Mon May 13, 2019 10:16 am

Re: CLI play music?

#4 Post 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
Life is too beautiful to observe it through windows. :penguin:

Post Reply

Return to “MX Help”