X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2f1f0c572a85f3d393315b6b63aff12a063649b3..5f1fd821a0ebbb2d61cb3c382ca199d109e4bbd8:/widgets/mpd.lua diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 3e2eaf5..ce48014 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -124,7 +124,8 @@ local function worker(args) mpd.id = naughty.notify({ preset = mpd_notification_preset, - icon = current_icon, + icon = os.execute(string.format("ls %s &> /dev/null", current_icon)) + and current_icon, replaces_id = mpd.id, }).id end