--- /dev/null
+# 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"