]> git.draconx.ca Git - fvwmconf.git/blobdiff - global/mpdmenu
Remove obsolete mpd scripts.
[fvwmconf.git] / global / mpdmenu
diff --git a/global/mpdmenu b/global/mpdmenu
new file mode 100644 (file)
index 0000000..a319211
--- /dev/null
@@ -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"