X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2cfc5650ade76cb72637310f134fc5db9e4d81a0..823659d83d1262bbd94821e8460822c0130fff56:/widgets/mpd.lua?ds=inline 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"