2024-02-19 19:41:33 -08:00
|
|
|
local awful = require("awful")
|
2024-02-18 20:26:15 -08:00
|
|
|
|
2024-02-19 19:41:33 -08:00
|
|
|
local layoutbox = awful.widget.layoutbox({
|
|
|
|
buttons = {
|
|
|
|
awful.button({}, 1, function()
|
|
|
|
awful.layout.inc(1)
|
|
|
|
end),
|
2024-02-24 14:01:36 -08:00
|
|
|
|
2024-02-19 19:41:33 -08:00
|
|
|
awful.button({}, 3, function()
|
|
|
|
awful.layout.inc(-1)
|
|
|
|
end),
|
2024-02-24 14:01:36 -08:00
|
|
|
|
2024-02-19 19:41:33 -08:00
|
|
|
awful.button({}, 4, function()
|
|
|
|
awful.layout.inc(-1)
|
|
|
|
end),
|
2024-02-24 14:01:36 -08:00
|
|
|
|
2024-02-19 19:41:33 -08:00
|
|
|
awful.button({}, 5, function()
|
|
|
|
awful.layout.inc(1)
|
|
|
|
end),
|
|
|
|
},
|
2024-02-18 14:31:14 -08:00
|
|
|
})
|
2024-02-19 19:41:33 -08:00
|
|
|
|
2024-02-24 14:01:36 -08:00
|
|
|
return layoutbox
|