On Wed, Jan 14, 2004 at 08:25:45AM +0100, Klaus Umbach wrote: > Hello list, > > is it possible, to change the RootMenu dynamicaly? > I want applications, that are already started and must not be started > a second time, like gaim and xmms to disappear in my RootMenu. > I tried > > Piperead 'if ps aux | grep treibho | grep gaim | grep -v grep > /dev/null; then echo > "+ \"ICQ%\$[HOME]/.fvwm/icons/36x36/apps/licq.png%\" Exec gaim"; fi' > > but that seems not to work. Any ideas? >
I got things right, piperead creates the menu only once. You need to explicitly destroy and recreate the menu each time (or when relevant). Here is an example of what I use to create a dynamic unread mail status menu (if anyone is interested in the script itself, mail me. Its not very efficient and it only handles Maildirs, but it works ;-) DestroyMenu Mail AddToMenu Mail Mail Title + DynamicPopUpAction Function read-mail-dir DestroyFunc read-mail-dir AddToFunc read-mail-dir + I DestroyMenu Mail + I AddToMenu Mail "Mail" Title + I PipeRead '~/.fvwm/maildir_status.sh ~/Maildir' + I AddToMenu Mail DynamicPopDownAction Function destroy-mail-dir DestroyFunc destroy-mail-dir AddToFunc destroy-mail-dir + I DestroyMenu Mail + I AddToMenu Mail "Mail" Title + I AddToMenu Mail DynamicPopUpAction Function read-mail-dir > Regards > Klaus > > -- > 5) People say Linux is ugly. How does that make you feel? > Torvalds: They'll be the first against the wall when the revolution comes. > Let's see just how ugly they think it is when they have a few > bulletholes in them. > > > -- > Visit the official FVWM web page at <URL: http://www.fvwm.org/>. > To unsubscribe from the list, send "unsubscribe fvwm" in the body of a > message to [EMAIL PROTECTED] > To report problems, send mail to [EMAIL PROTECTED] -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
