DestroyMenu /Music
AddToMenu /Music
+ DynamicPopupAction Function /Music-generator
DestroyFunc /Music-generator
AddToFunc /Music-generator
+ I DestroyMenu recreate /Music
+ I AddToMenu /Music '$[gt.Toggle random]' Music-ToggleRandom
+ I AddToMenu /Music '$[gt.Toggle repeat]' Music-ToggleRepeat
+ I AddToMenu /Music "" Nop
+ I AddToMenu /Music '$[gt.Stop playback]' Music-Stop
+ I AddToMenu /Music '$[gt.Show/hide player]' Music-GUI
+ I AddToMenu /Music '$[gt.Play/Pause]' Music-PlayPause
DestroyFunc Music-Play
AddToFunc Music-Play
+ I Exec exec dcop amarok player play 2>/dev/null
DestroyFunc Music-Pause
AddToFunc Music-Pause
+ I Exec exec dcop amarok player pause 2>/dev/null
DestroyFunc Music-Stop
AddToFunc Music-Stop
+ I Exec exec dcop amarok player stop 2>/dev/null
DestroyFunc Music-PlayPause
AddToFunc Music-PlayPause
+ I Exec exec dcop amarok player playPause 2>/dev/null
DestroyFunc Music-Next
AddToFunc Music-Next
+ I Exec exec dcop amarok player next 2>/dev/null
DestroyFunc Music-Prev
AddToFunc Music-Prev
+ I Exec exec dcop amarok player prev 2>/dev/null
DestroyFunc Music-ToggleRandom
AddToFunc Music-ToggleRandom
+ I Exec exec dcop amarok player enableRandomMode $( if [ $(dcop amarok player randomModeStatus) == false ]; then echo true; else echo false;fi) 2>/dev/null
DestroyFunc Music-ToggleRepeat
AddToFunc Music-ToggleRepeat
+ I Exec exec dcop amarok player enableRepeatPlaylist $( if [ $(dcop amarok player repeatPlaylistStatus) == false ]; then echo true; else echo false;fi) 2>/dev/null
DestroyFunc Music-GUI
AddToFunc Music-GUI
+ I Exec dcop amarok playlist togglePlaylist 2>/dev/null || amarok