1 # Copyright © 2008-2009, 2019, 2023 Nick Bowler
3 # Helper to create the dynamic MPD menu functions.
5 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
6 # This is free software: you are free to do what the fuck you want to.
7 # There is NO WARRANTY, to the extent permitted by law.
9 CopyMenuStyle * MenuMPD
10 MenuStyle MenuMpd ItemFormat "%.2|%3.5l%.5l%2.3>%-16.3i%1|"
14 + DynamicPopUpAction MakeMenuMPD
15 + DynamicPopDownAction KillMenuMPD
16 ChangeMenuStyle MenuMPD MenuMPD
18 DestroyFunc MakeMenuMPD
20 + I DestroyMenu recreate MenuMPD
21 + I PipeRead "exec $[infostore.mpdmenu_cmd] --menu MenuMPD"
23 Test (!EnvMatch infostore.mpdmenu_cmd *?) \
24 InfoStoreAdd mpdmenu_cmd "$[FVWM_USERDIR]/gitmodules/mpdhacks/mpdmenu.pl"