From 5108ca3bd54463d354e72e24a10f45877bcfd592 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Mon, 16 Sep 2013 13:33:56 +0200 Subject: [PATCH] holo: mpd & fix --- rc.lua.holo | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/rc.lua.holo b/rc.lua.holo index d466b39..6f67b03 100755 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -172,13 +172,12 @@ 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:gsub('"', '"'):upper() - mpd_now.title = mpd_now.title:gsub('"', '"'):upper() widget:set_markup(markup.font("Tamsyn 4", " ") - .. markup.font("Tamsyn 8", mpd_now.artist .. - " - " .. - mpd_now.title) - .. markup.font("Tamsyn 10", " ")) + .. markup.font("Tamsyn 8", + mpd_now.artist:upper():gsub("&", "&") + .. " - " .. + mpd_now.title:upper():gsub("&", "&") + .. markup.font("Tamsyn 10", " "))) play_pause_icon:set_image(beautiful.pause) elseif mpd_now.state == "pause" then widget:set_markup(markup.font("Tamsyn 4", " ") .. @@ -186,7 +185,7 @@ mpdwidget = lain.widgets.mpd({ markup.font("Tamsyn 10", " ")) play_pause_icon:set_image(beautiful.play) else - widget:set_text("") + widget:set_markup("") play_pause_icon:set_image(beautiful.play) end end