Hi guys,
I wanted to add a feature like doing a right click in tasklist to close a
particular window. (I liked this feature from openbox)
So, I went ahead and modified
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
.....
.....
awful.button({ }, 3, function (c)
c:kill()
end),
.....
.....
)
I am no prior experience with lua and have just seen a basic tutorial. I
just edit it looking at the API reference & looking the nearby code. (Thing
I did is like a "hello world" of configuration, anyways)
But, I have problem understanding how I got access to the active client
object in the function. I mean, I can see that the function has c as
parameter but still I couldn't find in the documentation as to what
arguments of function should be.
Similar is the case with this snippet.
-- Handle runtime errors after startup
do
local in_error = false
awesome.add_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = err })
in_error = false
end)
end
-- }}}
When it's done awesome.add_signal, where is it documented that function's
first argument err will contain the error text.
This might be pretty lame to ask but I would really appreciate the help.
Thanks in advance.
--
Regards,
Abhijeet Rastogi (shadyabhi)
https://plus.google.com/107316377741966576356/