aboutsummaryrefslogtreecommitdiff
path: root/plugins/smallclock.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/smallclock.lua')
-rw-r--r--plugins/smallclock.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/smallclock.lua b/plugins/smallclock.lua
index 7c845d7..e975152 100644
--- a/plugins/smallclock.lua
+++ b/plugins/smallclock.lua
@@ -54,14 +54,13 @@ local function update_time()
end
end
-core.status_view:add_item(
- nil,
- "status:small-clock",
- StatusView.Item.RIGHT,
- function()
+core.status_view:add_item({
+ name = "status:small-clock",
+ alignment = StatusView.Item.RIGHT,
+ get_item = function()
update_time()
return {style.accent, time}
end,
- nil,
- -1
-).separator = core.status_view.separator2
+ position = -1,
+ separator = core.status_view.separator2
+})