diff options
Diffstat (limited to 'plugins/scalestatus.lua')
-rw-r--r-- | plugins/scalestatus.lua | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/scalestatus.lua b/plugins/scalestatus.lua index aa08cdc..b07177f 100644 --- a/plugins/scalestatus.lua +++ b/plugins/scalestatus.lua @@ -36,20 +36,19 @@ config.plugins.scalestatus = common.merge({ } }, config.plugins.scalestatus) -core.status_view:add_item( - nil, - "status:scale", - StatusView.Item.RIGHT, - function() +core.status_view:add_item({ + name = "status:scale", + alignment = StatusView.Item.RIGHT, + get_item = function() return {string.format( config.plugins.scalestatus.format, scale.get() * 100 )} end, - nil, - 1, - "scale" -).separator = core.status_view.separator2 + position = 1, + "scale", + separator = core.status_view.separator2 +}) return true |