Jan'uary » 日志 » wmii dev version + ruby-wmii : resize/WMII_ADDRESS/etc.
wmii dev version + ruby-wmii : resize/WMII_ADDRESS/etc.
Jan 发表于 2008-04-06 22:01:45
wmii is cool since it's configurable with *ANY* language. As a rubist I use ruby-wmii by Mauricio (who is well known as mfp).
One problem is you can't assign shortcuts to resize a window in the latest wmii release. I asked for this in wmii's mailing list and luckily Kris, the author of wmii, quickly replied and implemented this. It's great, but the new problem is I found that WMII_ADDRESS, a environment variable, which will be set when wmii start in latestest stable release, does no longer exist in development version. And ruby-wmii will ask for it when wmii starts, so in one sentence, wmii version 'hg2307+' won't work with ruby-wmii.
Have no time to dig more, just create a quick patch to fix this:
around line#96 In cmd/wmii/main.c
Original:
if(address)
setenv("WMII_ADDRESS", address, true);
else
address = smprint("unix!%s/wmii", ns_path);
To:
if(!address)
address = smprint("unix!%s/wmii", ns_path);
setenv("WMII_ADDRESS", address, true);
May post a better solution later.
One problem is you can't assign shortcuts to resize a window in the latest wmii release. I asked for this in wmii's mailing list and luckily Kris, the author of wmii, quickly replied and implemented this. It's great, but the new problem is I found that WMII_ADDRESS, a environment variable, which will be set when wmii start in latestest stable release, does no longer exist in development version. And ruby-wmii will ask for it when wmii starts, so in one sentence, wmii version 'hg2307+' won't work with ruby-wmii.
Have no time to dig more, just create a quick patch to fix this:
around line#96 In cmd/wmii/main.c
Original:
if(address)
setenv("WMII_ADDRESS", address, true);
else
address = smprint("unix!%s/wmii", ns_path);
To:
if(!address)
address = smprint("unix!%s/wmii", ns_path);
setenv("WMII_ADDRESS", address, true);
May post a better solution later.
曾经的这一天...
- » 2006年: Password Recovery Speeds
- » 2005年: 88也要实行实名制了
- » 2005年: Zen and the art of Apache maintenance
相关日志:
收藏:
QQ书签
del.icio.us
订阅:
Google
抓虾
