From 99f6ff1d4578e69c445efc90d8b0b7b94b53a5d7 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 28 May 2008 06:53:49 +0200 Subject: [PATCH] [awesomerc] Make layout box clickable by default Signed-off-by: Julien Danjou --- awesomerc.lua.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 01b72781..b6964f47 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -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