wiki:plugin_mpd

Version 1 (modified by anonymous, 13 years ago) (diff)

--

MPd plugin

Under construction!


Functions

mpd::artist()return artist of current song
mpd::title()return title or name of current song
mpd::album()return album of current song
mpd::playtime()return elapsed time of current song
mpd::totaltime()return total time of current song

Configuration example

Plugin Mpd {
 Host 'MPd-Server'
 Port 6600
}

Widget examples

Widget mpd-title {
    class  'Text'
    expression  mpd::title()
    width  20
    align  'C'
    update tack
}

Widget mpd-artist {
    class 'Text'
    expression mpd::artist()
    width 20
    align 'C'
    update tack
}

Widget mpd-album {
    class 'Text'
    expression mpd::album()
    width 20
    align 'C'
    update tack
}

Widget mpd-time {
    class 'Bar'
    expression mpd::playtime()
    length 20
    direction 'E'
    min 0
    max mpd::totaltime()
    update tack
}