mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
Update calendar whenever dashboard is shown
This commit is contained in:
parent
6757cfbc1e
commit
28f86888aa
2 changed files with 14 additions and 0 deletions
|
|
@ -215,6 +215,13 @@ calendar_widget:buttons(gears.table.join(
|
|||
end)
|
||||
))
|
||||
|
||||
-- Update calendar whenever dashboard is shown
|
||||
dashboard:connect_signal("property::visible", function ()
|
||||
if dashboard.visible then
|
||||
calendar_widget.date = os.date('*t')
|
||||
end
|
||||
end)
|
||||
|
||||
local calendar_box = create_boxed_widget(calendar_widget, dpi(300), dpi(400), x.background)
|
||||
-- local calendar_box = create_boxed_widget(calendar, 380, 540, x.color0)
|
||||
|
||||
|
|
|
|||
|
|
@ -218,6 +218,13 @@ calendar_widget:buttons(gears.table.join(
|
|||
end)
|
||||
))
|
||||
|
||||
-- Update calendar whenever dashboard is shown
|
||||
dashboard:connect_signal("property::visible", function ()
|
||||
if dashboard.visible then
|
||||
calendar_widget.date = os.date('*t')
|
||||
end
|
||||
end)
|
||||
|
||||
local calendar_box = create_boxed_widget(calendar_widget, dpi(300), dpi(400), x.background)
|
||||
-- local calendar_box = create_boxed_widget(calendar, 380, 540, x.color0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue