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