58f9a82eb0
Fixes the following warning 2023-05-21 13:03:02 W: awesome: wibox.widget.background has been renamed to wibox.container.background. stack traceback: /usr/share/awesome/lib/gears/debug.lua:113: in function 'gears.debug.deprecate' /usr/share/awesome/lib/gears/debug.lua:164: in local 'layout' /usr/share/awesome/lib/wibox/widget/base.lua:745: in upvalue 'drill' /usr/share/awesome/lib/wibox/widget/base.lua:778: in upvalue 'drill' /usr/share/awesome/lib/wibox/widget/base.lua:818: in function 'wibox.setup' ...nfig/awesome/awesome-wm-widgets/pacman-widget/pacman.lua:227: in upvalue 'callback' /usr/share/awesome/lib/awful/widget/watch.lua:88: in function </usr/share/awesome/lib/awful/widget/watch.lua:87> |
||
---|---|---|
.. | ||
icons | ||
screenshots | ||
README.md | ||
pacman.lua | ||
upgrade |
README.md
Pacman widget for AwesomeWM
This widget displays the number of upgradable Pacman packages. Clicking the icon reveals a scrollable list of available upgrades. A full system upgrade can be performed from the widget via Polkit.
Requirements
lxpolkit
is the default Polkit agent.
The widget also uses the checkupdates
script from the pacman-contrib
package.
Installation
Clone the repo under ~/.config/awesome/ and add the following to rc.lua:
local pacman_widget = require('pacman-widget.pacman')
...
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
-- default
pacman_widget(),
-- custom (shown with defaults)
pacman_widget {
interval = 600, -- Refresh every 10 minutes
popup_bg_color = '#222222',
popup_border_width = 1,
popup_border_color = '#7e7e7e',
popup_height = 10, -- 10 packages shown in scrollable window
popup_width = 300,
polkit_agent_path = '/usr/bin/lxpolkit'
},