@@ -22,15 +22,15 @@ local function script_path()
22
22
end
23
23
24
24
local WIDGET_DIR = script_path ()
25
- local ICONS_DIR = WIDGET_DIR .. " / icons/"
25
+ local ICONS_DIR = WIDGET_DIR .. " icons/"
26
26
27
27
local LIST_PACKAGES = [[ sh -c "LC_ALL=c apt list --upgradable 2>/dev/null"]]
28
28
29
29
--- Utility function to show warning messages
30
30
local function show_warning (message )
31
31
naughty .notify ({
32
32
preset = naughty .config .presets .critical ,
33
- title = " Docker Widget" ,
33
+ title = " APT Widget" ,
34
34
text = message ,
35
35
})
36
36
end
@@ -54,9 +54,9 @@ local apt_widget = wibox.widget({
54
54
id = " icon" ,
55
55
widget = wibox .widget .imagebox ,
56
56
},
57
- margins = 4 ,
58
- layout = wibox .container .margin ,
57
+ layout = wibox .container .place ,
59
58
},
59
+ visible = true ,
60
60
layout = wibox .layout .fixed .horizontal ,
61
61
set_icon = function (self , new_icon )
62
62
self :get_children_by_id (" icon" )[1 ].image = new_icon
@@ -352,14 +352,13 @@ local function worker(user_args)
352
352
end
353
353
end )))
354
354
355
-
356
355
wibox_popup :connect_signal (" mouse::leave" , function ()
357
356
if wibox_popup .visible then
358
357
wibox_popup .visible = false
359
358
end
360
359
end )
361
360
362
- return apt_widget_button
361
+ return apt_widget
363
362
end
364
363
365
364
return setmetatable (apt_widget , {
0 commit comments