X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/402a36125f4da1e4cce1ae651d2cd7af4211ff20..25a02c0e784c071a1fd46e38fc11f858f3c6bf64:/global/mpdmenu diff --git a/global/mpdmenu b/global/mpdmenu new file mode 100644 index 0000000..a319211 --- /dev/null +++ b/global/mpdmenu @@ -0,0 +1,24 @@ +# Copyright © 2008-2009, 2019, 2023 Nick Bowler +# +# Helper to create the dynamic MPD menu functions. +# +# License WTFPL2: Do What The Fuck You Want To Public License, version 2. +# This is free software: you are free to do what the fuck you want to. +# There is NO WARRANTY, to the extent permitted by law. + +CopyMenuStyle * MenuMPD +MenuStyle MenuMpd ItemFormat "%.2|%3.5l%.5l%2.3>%-16.3i%1|" + +DestroyMenu MenuMPD +AddToMenu MenuMPD ++ DynamicPopUpAction MakeMenuMPD ++ DynamicPopDownAction KillMenuMPD +ChangeMenuStyle MenuMPD MenuMPD + +DestroyFunc MakeMenuMPD +AddToFunc MakeMenuMPD ++ I DestroyMenu recreate MenuMPD ++ I PipeRead "exec $[infostore.mpdmenu_cmd] --menu MenuMPD" + +Test (!EnvMatch infostore.mpdmenu_cmd *?) \ + InfoStoreAdd mpdmenu_cmd "$[FVWM_USERDIR]/gitmodules/mpdhacks/mpdmenu.pl"