Display the notification on the current screen

This commit is contained in:
Aurélien LAJOIE 2020-04-15 19:00:10 +02:00
parent 34598dca85
commit 92e411da97
3 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,7 @@ local function worker(args)
position = position,
timeout = 5, hover_timeout = 0.5,
width = 200,
screen = mouse.screen
}
end
)
@ -109,6 +110,7 @@ local function worker(args)
bg = "#F06060",
fg = "#EEE9EF",
width = 300,
screen = mouse.screen
}
end
local last_battery_check = os.time()

View File

@ -81,6 +81,7 @@ local function notif(msg, keep)
position = volume.position,
timeout = keep and 0 or 2, hover_timeout = 0.5,
width = 200,
screen = mouse.screen
}
end
end

View File

@ -210,6 +210,7 @@ local function worker(args)
'<b>Wind:</b> ' .. resp.wind.speed .. 'm/s (' .. to_direction(resp.wind.deg) .. ')',
timeout = 5, hover_timeout = 10,
position = position,
screen = mouse.screen,
width = (both_units_popup == true and 210 or 200)
}
end)