Re: FVWM: Fvwm Playlist Menu

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Fri, 07 May 2004 19:04:35 +0100

--On Friday, May 07, 2004 18:55:44 +0200 Antoine Marmignon
<antoine.marmignon_at_club-internet.fr> 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 :)

-- 
-------------------------------------
taviso_at_sdf.lonestar.org | 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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri May 07 2004 - 13:06:11 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST