dynamically calculate the correct number of columns for icons
This commit is contained in:
parent
7a3de33283
commit
2e7c161f56
2
init.lua
2
init.lua
@ -19,7 +19,7 @@ systray:set_base_size(switcherpopup.systraySize)
|
|||||||
function switcherpopup.new(s)
|
function switcherpopup.new(s)
|
||||||
local popup = false
|
local popup = false
|
||||||
local tasklistWidget = wibox.widget{
|
local tasklistWidget = wibox.widget{
|
||||||
layout = wibox.layout.grid.vertical(5)
|
layout = wibox.layout.grid.vertical(math.floor(s.geometry.width / (switcherpopup.iconSize + switcherpopup.spacing)))
|
||||||
}
|
}
|
||||||
local clock = wibox.container.place(wibox.widget.textclock("%H:%M %Y-%m-%d"), "center", "center")
|
local clock = wibox.container.place(wibox.widget.textclock("%H:%M %Y-%m-%d"), "center", "center")
|
||||||
local tagindex = wibox.widget({widget = wibox.widget.textbox, align = "center"})
|
local tagindex = wibox.widget({widget = wibox.widget.textbox, align = "center"})
|
||||||
|
Loading…
Reference in New Issue
Block a user