[awesomerc] Make layout box clickable by default

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-28 06:53:49 +02:00
parent 974e3859f7
commit 99f6ff1d45
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ myiconbox:set("image", "@iconsdir@/awesome16.png")
mylayoutbox = {}
for s = 1, screen.count() do
mylayoutbox[s] = widget.new({ type = "iconbox", name = "myiconbox", align = "right" })
mylayoutbox[s]:mouse({ }, 1, function () awful.layout.inc(layouts, 1) end)
mylayoutbox[s]:mouse({ }, 3, function () awful.layout.inc(layouts, -1) end)
mylayoutbox[s]:mouse({ }, 4, function () awful.layout.inc(layouts, 1) end)
mylayoutbox[s]:mouse({ }, 5, function () awful.layout.inc(layouts, -1) end)
mylayoutbox[s]:set("image", "@iconsdir@/layouts/tilew.png")
end