my-config/awesome/ui/wibar/module/layoutbox.lua

16 lines
548 B
Lua
Raw Normal View History

2024-08-20 13:20:26 +00:00
local awful = require('awful')
return function(s)
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
-- We need one layoutbox per screen.
return awful.widget.layoutbox({
screen = s,
buttons = {
awful.button(nil, 1, function() awful.layout.inc( 1) end),
awful.button(nil, 3, function() awful.layout.inc(-1) end),
awful.button(nil, 4, function() awful.layout.inc(-1) end),
awful.button(nil, 5, function() awful.layout.inc( 1) end)
}
})
end