]> git.draconx.ca Git - fvwmconf.git/blob - global/mpdmenu
Use mpdexec for key bindings.
[fvwmconf.git] / global / mpdmenu
1 # Copyright © 2008-2009, 2019, 2023 Nick Bowler
2 #
3 # Helper to create the dynamic MPD menu functions.
4 #
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.
8
9 CopyMenuStyle * MenuMPD
10 MenuStyle MenuMpd ItemFormat "%.2|%3.5l%.5l%2.3>%-16.3i%1|"
11
12 DestroyMenu MenuMPD
13 AddToMenu   MenuMPD
14 + DynamicPopUpAction   MakeMenuMPD
15 + DynamicPopDownAction KillMenuMPD
16 ChangeMenuStyle MenuMPD MenuMPD
17
18 DestroyFunc MakeMenuMPD
19 AddToFunc   MakeMenuMPD
20 + I DestroyMenu recreate MenuMPD
21 + I PipeRead "exec $[infostore.mpdmenu_cmd] --menu MenuMPD"
22
23 Test (!EnvMatch infostore.mpdmenu_cmd *?) \
24   InfoStoreAdd mpdmenu_cmd "$[FVWM_USERDIR]/gitmodules/mpdhacks/mpdmenu.pl"