From df4ecc92f6d70057a7412ac07f681c8849f12ba8 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Mon, 16 Sep 2013 13:48:57 +0200 Subject: [PATCH] holo: &.-; fix --- rc.lua.holo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc.lua.holo b/rc.lua.holo index 6f67b03..aaee5b5 100755 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -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