summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien LAJOIE <orel@melix.net>2020-04-15 19:00:10 +0200
committerAurélien LAJOIE <orel@melix.net>2020-04-15 19:00:10 +0200
commit92e411da972fe8a2ab0297c01e96ab76d72e498e (patch)
tree92038c2135f9b231d5efec88352f0923a5b4e4d0
parent34598dca85565bf3b051a9f14d9b945c087f6fd1 (diff)
Display the notification on the current screen
-rw-r--r--battery-widget/battery.lua2
-rw-r--r--volume-widget/volume.lua1
-rw-r--r--weather-widget/weather.lua1
3 files changed, 4 insertions, 0 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index d84e591..919fb60 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -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()
diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua
index 652c39b..d7334eb 100644
--- a/volume-widget/volume.lua
+++ b/volume-widget/volume.lua
@@ -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
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua
index 6fafa97..5aaf426 100644
--- a/weather-widget/weather.lua
+++ b/weather-widget/weather.lua
@@ -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)