Hello, I have more then one soundcard installed and use "wmmixer" to set the values.
We have allied a patch to support multiple config files and today I
coded a second patch, which let me modify the "Class" of the Window.
OK, "wmmixer" show normaly:
Name: wmmixer
Icon Name: wmmixer
Class: WMMixer
Resource: wmmixer
and now I can use:
----[ '~/.fvwm/PROF_default/FvwmButtonsRight.real' ]--------------------
<snip>
(2x2, \
Frame 0, \
Padding 3 3, \
Title "VIA", \
Swallow "WMMixer-VIA" "Exec exec wmmixer -w --mix-device /dev/mixer --config
~/.wmmixer_via --x-class WMMixer-VIA" \
)
(2x2, \
Frame 0, \
Padding 3 3, \
Title "SB1", \
Swallow "WMMixer-SB1" "Exec exec wmmixer -w --mix-device /dev/mixer1 --config
~/.wmmixer_sb --x-class WMMixer-SB1" \
)
(2x2, \
Frame 0, \
Padding 3 3, \
Title "SB2", \
Swallow "WMMixer-SB2" "Exec exec wmmixer -w --mix-device /dev/mixer2 --config
~/.wmmixer_sb --x-class WMMixer-SB2" \
)
------------------------------------------------------------------------
and now "wmmixer" show me
Name: wmmixer
Icon Name: wmmixer
Class: WMMixer-VIA
Resource: wmmixer
and
Name: wmmixer
Icon Name: wmmixer
Class: WMMixer-SB1
Resource: wmmixer
and
Name: wmmixer
Icon Name: wmmixer
Class: WMMixer-SB2
Resource: wmmixer
However, Fvwm does not care about the
Swallow "WMMixer-..."
setting. Can someone tell me WHY?
----[ manpage 'FvwmButtons' ]-------------------------------------------
Swallow [(flags)] hangon command
Causes FvwmButtons to execute command, and when a window
with a name, class or resource matching hangon appears,
it is captured and swallowed into this button. The
hangon string may contain wildcard characters (’*’) that
match any substring. Swallow replaces the variables $fg
and $bg as described above for the Action option (but if
you use the UseOld and NoClose options the application is
not be restarted when FvwmButtons is restarted and thus
does not get the new colors - if you changed them). An
example:
*FvwmButtons: (Swallow XClock ’Exec xclock -geometry
-3000-3000 &’)
takes the first window whose name, class, or resource is
"XClock" and displays it in the button. If no matching
window is found, the "Exec" command creates one. The
argument "-geometry -3000-3000" is used so that the win‐
dow is first drawn out of sight before its swallowed into
FvwmButtons.
Modules can be swallowed by specifying the module instead
of ’Exec whatever’, like:
*FvwmButtons: (Swallow "FvwmPager" "FvwmPager 0 0")
<snip>
------------------------------------------------------------------------
So according to the manpage WHICH USE the "Class" I do not understand,
WHY it does not work with wmmixer.
Any hints?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
##################### Debian GNU/Linux Consultant ######################
Development of Intranet and Embedded Systems with Debian GNU/Linux
itsystems@tdnet France EURL itsystems@tdnet UG (limited liability)
Owner Michelle Konzack Owner Michelle Konzack
Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix
<http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/>
Jabber [email protected]
Linux-User #280138 with the Linux Counter, http://counter.li.org/
signature.pgp
Description: Digital signature
