On 14.10.2011 21:50, Marco Gergele wrote:
> Ah, thanks, good.
> 
> Is there some list of properties of a Awesome- Object, or any kind of "dump"
> of an "userdata"?
> 
> I search simply for the window-id or a obejct-id to store an extra property.
> Can I assign an extra property to those objects, say store a counter?
> 
> I seem to be to silly to find the right doc. In the FAQ and in the API no
> object keys are listet, not even border_color or name and class, there are
> examples, but no lists...

luadoc is available here:
http://awesome.naquadah.org/doc/api/

And no, you can't add additional properties here, but for tags and clients awful
provides functions for this.

E.g. to associate something with a client, do awful.client.property.set(c,
"my_counter", 5). You can get that value again via awful.client.property.get(c,
"my_counter"). The resulting value will be nil if this property wasn't set yet.

Uli

> 2011/10/14 Uli Schlachter <[email protected]>
> 
>> Am 14.10.2011 15:52, Marco Gergele wrote:
>>
>>> Hi,
>>>
>>> on certain conditions I want to simulate a Key Press on active client, the
>>> Key "Scroll lock", which xev calls ISO_Next_Group keycode 78.
>>>
>>> How can I send that key from rc.lua? Any hint?
>>>
>>> switchKey = awful.key({}, "#78");
>>> switchKey:emit_signal("press")
>>>
>>> doesnt't work, it just wants to execute "press". :-(
>>>
>>> That must be used in controlling audio players or similar tasks too, so I
>>> wonder I can't find any hint on it.
>>>
>>> Any help really welcome!
>>> Marco.
>>>
>>>
>> root.fake_input("key_press", 78)
>> root.fake_input("key_release, 78)
>>
>> --
>> To unsubscribe, send mail to 
>> awesome-unsubscribe@naquadah.**org<[email protected]>
>> .
>>
> 


-- 
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451

-- 
To unsubscribe, send mail to [email protected].

Reply via email to