We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4ba9d commit 7eb3b2aCopy full SHA for 7eb3b2a
calendar-widget/calendar.lua
@@ -203,7 +203,7 @@ local function worker(user_args)
203
border_color = calendar_themes[theme].border,
204
widget = cal
205
}
206
-
+
207
local auto_hide_timer = gears.timer({
208
timeout = user_args.timeout or 2,
209
single_shot = true,
@@ -213,7 +213,7 @@ local function worker(user_args)
213
})
214
215
popup:connect_signal("mouse::leave", function()
216
- if user_args.auto_hide then
+ if user_args.auto_hide then
217
auto_hide_timer:again()
218
end
219
end)
mpris-widget/init.lua
@@ -7,7 +7,6 @@
7
-------------------------------------------------
8
local awful = require('awful')
9
local beautiful = require('beautiful')
10
-local watch = require('awful.widget.watch')
11
local wibox = require('wibox')
12
local gears = require('gears')
13
@@ -44,7 +43,7 @@ function playerctl:watch(timeout, callback, widget)
44
43
45
self.watch_params = { timeout = timeout, callback = callback, widget = widget }
46
47
- local cb = function(widget, stdout, _, _, _)
+ local cb = function(cb_widget, stdout, _, _, _)
48
local words = gears.string.split(stdout, ';')
49
50
local position, length, progress = tonumber(words[5]), tonumber(words[6])
@@ -68,7 +67,7 @@ function playerctl:watch(timeout, callback, widget)
68
67
metadata.year = string.sub(words[8], 0, 4)
69
70
71
- callback(widget, metadata)
+ callback(cb_widget, metadata)
72
73
74
_, self.timer = awful.widget.watch(cmd, timeout, cb, widget)
0 commit comments