Skip to content

Commit

Permalink
Improved the rendering of the mpd widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeyZ committed Mar 30, 2013
1 parent 80aa0fc commit 75faffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ mpdicon:set_image(beautiful.widget_mpd)
mpdwidget = wibox.widget.textbox()

vicious.register(mpdwidget, vicious.widgets.mpd, function(mpdwidget, args)
if args["{state}"] == "Stop" then
return " - "
else
if args["{state}"] == "Play" then
return args["{Artist}"]..' - '.. args["{Title}"]
else
return " - "
end
end, 10)
-- }}}
Expand Down

0 comments on commit 75faffe

Please sign in to comment.