bbidulock / icewm

A window manager designed for speed, usability, and consistency
Other
577 stars 98 forks source link

Only startup.wav works with icewm-session --sound (icesound) #643

Closed ghost closed 1 year ago

ghost commented 2 years ago

Hello,

I've been doing a lot of tweaking with my favorite window manager today. I only recently found out there is a sound theme system (icesound) and I've enabled it via .xinitrc when launching my icewm-session with the --sound flag:

exec dbus-launch --exit-with-session icewm-session --sound --nobg ^ My .xsession & .xinitrc

I downloaded the "warp" theme from the icewm website and managed to get it semi-working by extracting all the sounds to $HOME/.icewm/sounds. I say semi-working because only the "startup.wav" works when there are all sorts of other sounds that came with it.

This is icewm 2.9.4 on FreeBSD 13.0-RELEASE. Any help or clarity is appreciated. :-)

gijsbers commented 2 years ago

What sound interface?

icesound --list-interfaces

Does this work?

for f in $(icesound --list-sounds) ; do if test -f ~/.icewm/sounds/$f ; then echo "Playing $f"; icesound -p $f; else echo "Skipping $f"; fi ; done
ghost commented 2 years ago

What sound interface? OSS.

Does this work? Says "illegal variable name"

gijsbers commented 2 years ago

What shell do you use?

ghost commented 2 years ago

What shell do you use?

It's tcsh. I just ran the command in a terminal emulator because I assumed that's what you meant.

gijsbers commented 2 years ago

It is a bash script. Can you start bash and run it?

ghost commented 2 years ago

It works. It played all of the sounds.

gijsbers commented 2 years ago

Good. Monitor sound events with icesh guievents. For each line icesound should play a sound.