Re: [wmii] Fwd: Re: wmii post from requires approval

From: <>
Date: Thu, 6 Apr 2006 11:59:17 +0200

On Thursday 06 April 2006 11:38, Anselm R. Garbe wrote:
> If someone presents a nice idea which works with sh, maybe in
> conjunction with awk, I'm open to do it. Otherwise blame X that
> it needs to grab shortcuts and there is no portable way to get
> keyboard events in any other way.

If you create a folder instead of a file for the keys, it gets simpler to add
keys with `wmiir create`

Then you could create a callback method that accept "key" and the rest as

callback() {
  wmiir create /def/keys/$key
  # Store the command with the key in a hash

Then in the event loop, match the key in the hash

weblog :
Received on Thu Apr 06 2006 - 11:59:39 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:55 UTC