Working on the miser control of fvwm.crystal, if I run into a console:
If the same command is into a fvwm Piperead command, fvwm send it to the shell and use the output of the Piperead (the output of
Even if it works as wanted into fvwm, I found this non consistent behavior very unattended and not welcomed. How can I be sure that will work for another fvwm-crystal user if it don't work with a console started by fvwm-crystal for me.
Edit: A picture of the menu. That
Code:
$ amixer -D pcm0 controls
ALSA lib control.c:1570:(snd_ctl_open_noupdate) Invalid CTL pcm0
amixer: Control pcm0 open error: No such file or directory
If the same command is into a fvwm Piperead command, fvwm send it to the shell and use the output of the Piperead (the output of
echo "..." in that case) as fvwm config statements, and it works and I get the menu generated on the fly by the Piperead into the Preferences menu. See Preferences-Menu lines 604 to 610.
Code:
Test (EnvMatch FSYS_IS_FREEBSD 1) Test (x amixer) PipeRead `for i in $(grep -e pcm < /dev/sndstat | sed -e "s:\(pcm.\)\(.*\):\1:"); \
do for j in $(amixer -D "$i" controls | grep Volume | sed -e 's:\\(numid=\\)\\(.*\\)\\(,iface.*\\):\\2:'); \
do ControlT="$(amixer -D ${i} cget numid=${j})"; \
Control="$(echo ${ControlT} | sed -e "s:\\(.*name='\\)\\(.*\\)\\('.*\\):\\2:")"; \
echo "+ '%22x22/apps/alsamixer.png%$[gt.Sound Card] ${i} ${Control}' SelectSoundCard '${i}' '${j}'"; \
done; \
done`
Even if it works as wanted into fvwm, I found this non consistent behavior very unattended and not welcomed. How can I be sure that will work for another fvwm-crystal user if it don't work with a console started by fvwm-crystal for me.
Edit: A picture of the menu. That
Piperead gives the part with the "Carte son..." lines:
Last edited: