mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
widgets: display date even when one screen
This commit is contained in:
parent
590a3b6662
commit
a6d1846fc8
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ spacer.image = image(beautiful.icons .. "/widgets/spacer.png")
|
||||||
|
|
||||||
-- Date
|
-- Date
|
||||||
local datewidget = widget({ type = "textbox" })
|
local datewidget = widget({ type = "textbox" })
|
||||||
local dateformat = "%H:%M"
|
local dateformat = "%a %d/%m, %H:%M"
|
||||||
if screen.count() > 1 then dateformat = "%a %d/%m, " .. dateformat end
|
|
||||||
vicious.register(datewidget, vicious.widgets.date,
|
vicious.register(datewidget, vicious.widgets.date,
|
||||||
'<span color="' .. beautiful.fg_widget_clock .. '">' ..
|
'<span color="' .. beautiful.fg_widget_clock .. '">' ..
|
||||||
dateformat .. '</span>', 61)
|
dateformat .. '</span>', 61)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue