widgets: let clock update every two seconds

Most widgets are updated every two seconds. This is stupid to not
update the clock too. It would be better to update it at the next
minute but we would need to handle the timers ourselves.
This commit is contained in:
Vincent Bernat 2021-04-07 08:48:58 +02:00
parent d02e89700f
commit 853760b466

View file

@ -16,7 +16,7 @@ local datewidget = widget({ type = "textbox" })
local dateformat = "%a %d/%m, %H:%M"
vicious.register(datewidget, vicious.widgets.date,
'<span color="' .. beautiful.fg_widget_clock .. '">' ..
dateformat .. '</span>', 61)
dateformat .. '</span>')
local dateicon = widget({ type = "imagebox" })
dateicon.image = image(beautiful.icons .. "/widgets/clock.png")
local cal = (