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