Is there a possibility to change a icon in the FvwmButton depending on the state of a program?
I have a Icon like this in my FvwmButton
*FvwmButton: (3x2 Frame 0, Colorset 18, Icon player_play.png Action(Mouse 1) `Exec exec echo -e "play\\nclose"|nc $mpd_host $mpd_port`)
to control my mpd. And i want to change the Icon to the “player_pause.png”, when mpd is playing a song, and the “player_play.png”-Icon, when the player is paused…
With FvwmScript it is no problem, but there are the Buttons so big, that i have not enough space in my Buttonbar, and i don´t like the 3D-effect. How can i do this with FvwmButton?
Or is there a possibility in FvwmScript to deactivate the 3D-PushButton-effect?
How is the command out of a FvwmScript? I have a periodic update of the mpd-status in a Script. There i want to make this job, because, i can control the mpd with different clients, and the icon should always be the right.
If $status == [playing] Then
Begin
HideWidget 3
ShowWidget 2
SendToModule FvwmShelf ChangeButton "A" Icon player_pause.png
End
segfaults the Applet…
==> /home/jakob/.xsession-errors <==
[FvwmApplet-MpdSongInfo] Line 56: syntax error
==> /var/log/syslog <==
Apr 26 16:50:11 pluto kernel: [555974.831685] FvwmScript[5651]: segfault at 90 ip 000000000040d623 sp 00007fff56f0a480 error 4 in FvwmScript[400000+59000]