X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/315106253f0bd8a218ffc06f8c2b9d2781372e78..b9e2596cbddd1d932aa4b6bbd2226a6016b1004e:/widgets/mpd.lua diff --git a/widgets/mpd.lua b/widgets/mpd.lua index d8bcd78..73efebb 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -10,7 +10,6 @@ local helpers = require("lain.helpers") local escape_f = require("awful.util").escape -local surface = require("gears").surface local naughty = require("naughty") local wibox = require("wibox") @@ -92,8 +91,9 @@ local function worker(args) mpd.id = naughty.notify({ preset = mpd_notification_preset, - icon = surface.load_uncached("/tmp/mpdcover.png"), - replaces_id = mpd.id + icon = "/tmp/mpdcover.png", + replaces_id = mpd.id, + screen = client.focus and client.focus.screen or 1 }).id end elseif mpd_now.state ~= "pause"