--On Friday, May 07, 2004 18:55:44 +0200 Antoine Marmignon <[EMAIL PROTECTED]> wrote: > > It is possible to redirect the output of the 'mpc playlist' command to a > file then use the Read command but i'd like to make it more simple (using > a PipeRead)
DestroyFunc PlayListMenu AddToFunc PlayListMenu + I AddToMenu PlayList + I DynamicPopDownAction DestroyMenu Playlist + I PipeRead "mpc playlist | sed -e 's/\\(^.*$\\)/+ %menupixmap.png%\"\\1\" Exec foobar/'" then just use this function as your MissingSubmenuFunction, and add a Popup Playlist to your menu. (havn't actually tested it, i dont use mpc, but should work :) -- ------------------------------------- [EMAIL PROTECTED] | finger me for my gpg key. ------------------------------------------------------- -- 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]
