I use this piece of code to hide the widget box on the screen which currently
holds the mouse pointer:
-- hide / unhide current screens wibox
keybinding({ modkey, "Mod1" }, "w", function ()
local w = wi_widgets[mouse.screen]
if w.screen then
w.screen = nil
else
w.screen = mouse.screen
end
end):add()
Note that I am currently using Awesome 3.1-rc1, so you may have to adapt it a
bit to fit your version.
On how to find out important variables: If I have to find out, e.g. which
variable holds the screen the mouse cursor is currently on, I skim the default
config for something which resembles what I want. If I don't find an answer
there, I try to think of which awful module or library does something
resembling what I want and look there. The libraries are really well written
code, so it should be relatively easy to find what one is searching for.
If neither the default config nor the libraries yield any results, I try to
have a look at other people's configs, some of which are gathered at
http://awesome.naquadah.org/wiki/index.php?title=User_Configuration_Files
If I don't find anything in either of these places, I either ask in #awesome on
OFTC or I try to have a look at the C-source of Awesome (which is also very
well written and understandable)
Gregor Best
--
To unsubscribe, send mail to [EMAIL PROTECTED]