X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2f1f0c572a85f3d393315b6b63aff12a063649b3..65300b0098d1b005fd4c1ed9d54bc2a7912a289f:/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