1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 19:22:32 +00:00

holo: &.-; fix

This commit is contained in:
luke bonham 2013-09-16 13:48:57 +02:00
parent 5108ca3bd5
commit df4ecc92f6

View file

@ -172,11 +172,13 @@ play_pause_icon:set_image(beautiful.play)
mpdwidget = lain.widgets.mpd({
settings = function ()
if mpd_now.state == "play" then
mpd_now.artist = mpd_now.artist:upper():gsub("&.-;", string.lower)
mpd_now.title = mpd_now.title:upper():gsub("&.-;", string.lower)
widget:set_markup(markup.font("Tamsyn 4", " ")
.. markup.font("Tamsyn 8",
mpd_now.artist:upper():gsub("&", "&")
mpd_now.artist
.. " - " ..
mpd_now.title:upper():gsub("&", "&")
mpd_now.title
.. markup.font("Tamsyn 10", " ")))
play_pause_icon:set_image(beautiful.pause)
elseif mpd_now.state == "pause" then