[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-14 Thread steph
Kris Maglione :
> Just download the latest snapshot from wmii.suckless.org, it includes
> libixp.

thanks for your patience. With this snapshot, no problem.

Just a thing: the link for the snapshot in the wmii homepage
(http://code.suckless.org/dl/wmii/wmii+ixp-20090512.tgz) is wrong
I think the right one must be
http://code.suckless.org/dl/wmii/wmii+ixp-snap20090514.tgz.

Bye
-- 
[email protected]




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-14 Thread Kris Maglione

On Thu, May 14, 2009 at 10:24:06PM +0200, steph wrote:

Kris Maglione :

Just pull from hg, and run 'make deb-dep deb'


Thanks for this command (i didn't know) but some weeks ago i've tried with
dpkg-buildpackage and i had the same error:

make[4]: *** No rule to make target `/usr/lib/libixp.a', needed by
`wmii.O'.  Stop.
make[3]: *** [dall] Error 2
make[2]: *** [dall] Error 2
make[1]: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status
2
make: *** [deb] Error 2
zsh: exit 2 LANG=C sudo make deb-dep deb

I don't know what is the problem: i install libixp from hg but it
doesn't change anything.
The debian/rules file seems to be old. I try with the debian diff from
the last package in unstable released a week ago but the problèm is
the same.

I want to add that the compilation with make and make install works
fine but as i said in my last post, i prefer dabian packages :)


Just download the latest snapshot from wmii.suckless.org, it 
includes libixp.


--
Kris Maglione

The camel has evolved to be relatively self-sufficient.  On the other
hand, the camel has not evolved to smell good.  Neither has Perl.
--Larry Wall




[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-14 Thread steph
Kris Maglione :
> Just pull from hg, and run 'make deb-dep deb'

Thanks for this command (i didn't know) but some weeks ago i've tried with
dpkg-buildpackage and i had the same error:

make[4]: *** No rule to make target `/usr/lib/libixp.a', needed by
`wmii.O'.  Stop.
make[3]: *** [dall] Error 2
make[2]: *** [dall] Error 2
make[1]: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status
2
make: *** [deb] Error 2
zsh: exit 2 LANG=C sudo make deb-dep deb

I don't know what is the problem: i install libixp from hg but it
doesn't change anything.
The debian/rules file seems to be old. I try with the debian diff from
the last package in unstable released a week ago but the problèm is
the same.

I want to add that the compilation with make and make install works
fine but as i said in my last post, i prefer dabian packages :)

Bye
-- 
steph




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-14 Thread Kris Maglione

On Thu, May 14, 2009 at 01:08:09PM +0200, steph wrote:

It seems working fine with wmii 3.6+debian-5, no errors. I think you
can change the README :)
I will make others tests later, i don't have time now. If i see
problems, i'll tell you.

Thanks for this commit, i prefer use debian packages. It's more simple :)


Just pull from hg, and run 'make deb-dep deb'

--
Kris Maglione

One does well to put on gloves when reading the New Testament.  The
proximity of so much uncleanliness almost forces one to do this.
--Friedrich Nietzsche




[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-14 Thread steph
Hello,

Suraj Kurapati :
>
> Thanks, this is good to know.  I applied your suggestion in this commit:
>
> http://github.com/sunaku/wmiirc/commit/9596761e8197f9802bc53c05b16253b9f737b6ff
>
> Steph, if you would like, please verify this commit with wmii-3.6.  Cheers.

It seems working fine with wmii 3.6+debian-5, no errors. I think you
can change the README :)
I will make others tests later, i don't have time now. If i see
problems, i'll tell you.

Thanks for this commit, i prefer use debian packages. It's more simple :)

Bye
-- 
[email protected]




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-14 Thread Suraj Kurapati
On Wed, May 13, 2009 at 8:36 PM, Kris Maglione  wrote:
> On Tue, May 12, 2009 at 03:57:27PM -0700, Suraj Kurapati wrote:
>> Perhaps wmii-3.6 does not support the "bar on top|bottom" setting and
>> is therefore raising a "bad value" error?
>
> You can just catch the exception. All of the other values you write should
> still take effect.

Thanks, this is good to know.  I applied your suggestion in this commit:

http://github.com/sunaku/wmiirc/commit/9596761e8197f9802bc53c05b16253b9f737b6ff

Steph, if you would like, please verify this commit with wmii-3.6.  Cheers.



Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-13 Thread Kris Maglione

On Tue, May 12, 2009 at 12:50:35PM -0700, Suraj Kurapati wrote:

Another minor annoyance. In wmii (latest hg version), the menu is called
using wimenu. When I type a few characters and press tab, it behaves like
left arrow key in dmenu. Rumani simply calls dmenu and tab completes the
current word. Any idea how wimenu is implmented? Can the choice of the menu
program be also made configurable?


For the time being, you can git cherry-pick this commit:
http://github.com/sunaku/wmiirc/commit/7dc215c300be27a8034869e39246d3e8e7330a4f

Or you can just override the click_menu() method in the "script"
section of your config.yaml file.  I'll think about making it an
option, maybe as "display:menu".


I don't see any problems with the default key bindings, but 
since they seem unacceptable to you, they're rebindable in the 
latest tip. You should probably rebind them via a pipe so they 
can be configured via YAML.


--
Kris Maglione

You're bound to be unhappy if you optimize everything.
--Donald Knuth




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-13 Thread Kris Maglione

On Tue, May 12, 2009 at 03:57:27PM -0700, Suraj Kurapati wrote:

Aha!   This must be the real problem.  I only use wmii-hg and I did
not test my wmiirc with wmii-3.6.

Perhaps wmii-3.6 does not support the "bar on top|bottom" setting and
is therefore raising a "bad value" error?


You can just catch the exception. All of the other values you 
write should still take effect.


--
Kris Maglione

When you start off by telling those who disagree with you that they
are not merely in error but in sin, how much of a dialogue do you
expect?
--Thomas Sowell




[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread steph
Suraj Kurapati :
> Done.  The new minimum requirement is wmii hg2444.
>
> http://github.com/sunaku/wmiirc/commit/04147250267a8b6c3ca6cbb7378f8cf554ae9fb1

Ok, wmii-hg works fine with your config.
Thanks a lot.

Bye
-- 
steph




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread Suraj Kurapati
On Tue, May 12, 2009 at 4:32 PM, steph  wrote:
> Suraj Kurapati :
>>> Is rumai-3.0.0 works with wmii-3.6?
>>
>> Aha!   This must be the real problem.  I only use wmii-hg and I did
>> not test my wmiirc with wmii-3.6.
>
> Perhaps you can write in the README that wmii-3.6 is not supported...

Done.  The new minimum requirement is wmii hg2444.

http://github.com/sunaku/wmiirc/commit/04147250267a8b6c3ca6cbb7378f8cf554ae9fb1



[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread steph
Suraj Kurapati :
>> Is rumai-3.0.0 works with wmii-3.6?
>
> Aha!   This must be the real problem.  I only use wmii-hg and I did
> not test my wmiirc with wmii-3.6.
>
> Perhaps wmii-3.6 does not support the "bar on top|bottom" setting and
> is therefore raising a "bad value" error?

I think so.

Perhaps you can write in the README that wmii-3.6 is not supported...

Thanks for your help. I 'll try to test wmii-hg but i hope that a new
release will appear quickly (perhaps with your config inside). :)

-- 
[email protected]




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread Suraj Kurapati
On Tue, May 12, 2009 at 2:58 PM, steph  wrote:
> Suraj Kurapati :
>> The problem was in the "data=" field of that message: [...]
>> It seems that you added newlines to the values of those parameters
>
> No, i didn't change anything!

My mistake.   I parsed your error output incorrectly.

> Is rumai-3.0.0 works with wmii-3.6?

Aha!   This must be the real problem.  I only use wmii-hg and I did
not test my wmiirc with wmii-3.6.

Perhaps wmii-3.6 does not support the "bar on top|bottom" setting and
is therefore raising a "bad value" error?



[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread steph
Suraj Kurapati :
> The problem was in the "data=" field of that message:
>
> bar on bottom
> colmode
> default
> normcolors #c0c0c0 #0a0a0a #202020
> grabmod Mod1
> border
> 1
> font -*-fixed-medium-r-*-*-18-*-*-*-*-*-*-*
> focuscolors #ff
> #285577 #4c7899
>
> It seems that you added newlines to the values of those parameters in
> your config.yaml file, correct?

No, i didn't change anything! I use the last commit from git.
I wanted to test with your config before make any changes. I don't
understand why it doesn't work on my system.

Is rumai-3.0.0 works with wmii-3.6?

Thanks for your help

Bye

-- 
[email protected]




Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread Suraj Kurapati
On Tue, May 12, 2009 at 7:05 AM, Aditya Mahajan  wrote:
> Another minor annoyance. In wmii (latest hg version), the menu is called
> using wimenu. When I type a few characters and press tab, it behaves like
> left arrow key in dmenu. Rumani simply calls dmenu and tab completes the
> current word. Any idea how wimenu is implmented? Can the choice of the menu
> program be also made configurable?

For the time being, you can git cherry-pick this commit:
http://github.com/sunaku/wmiirc/commit/7dc215c300be27a8034869e39246d3e8e7330a4f

Or you can just override the click_menu() method in the "script"
section of your config.yaml file.  I'll think about making it an
option, maybe as "display:menu".



Re: [wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread Suraj Kurapati
On Tue, May 12, 2009 at 4:05 AM, steph  wrote:
> I've installed rumai-3.0.0 but i can't use yaml config: wmii starts
> with an xterm and this error message in a xmessage window and in
> wmiirc.log: [...]

The problem was in the "data=" field of that message:

bar on bottom
colmode
default
normcolors #c0c0c0 #0a0a0a #202020
grabmod Mod1
border
1
font -*-fixed-medium-r-*-*-18-*-*-*-*-*-*-*
focuscolors #ff
#285577 #4c7899

It seems that you added newlines to the values of those parameters in
your config.yaml file, correct?

For example:

  border: |
1

Will become { "border" => "\n1" } in Ruby.

> Thank you for rumai. Before the config.yaml release, I was using
> rumai-2.0.0 with the config.rb tag of your wmiirc which don't work
> with rumai-3.0.0.

No problem, I'm glad it was helpful to you.



[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread Aditya Mahajan

On Tue, 12 May 2009, Suraj Kurapati wrote:


On Mon, May 11, 2009 at 3:45 PM, Aditya Mahajan  wrote:

On Mon, 11 May 2009, Suraj Kurapati wrote:

On Mon, May 11, 2009 at 11:58 AM, Aditya Mahajan 
wrote:


gem search rumai --remote
*** REMOTE GEMS ***
rumai (2.0.0)



I filed a support request about this problem here:

http://rubyforge.org/tracker/index.php?func=detail&aid=25876&group_id=5&atid=102


Thanks.


One minor annoyance. I have plan9 installed, so by default your wmiirc does
not work. Based on a discussion here sometime back, I created a
rc.wmii.local file containing

exec `{wi_script wmiirc}

However, the "run action" prompt does not have a rc.wmii action (it only has
rc.wmii.local and wmiirc). So, I cannot execute the changes that I make in
the yaml file on the fly. In order to run wmiirc again, I need to log out
and login again.


Try upgrading to this[1] commit or further.  You will see a "reload"
action in the action menu.  This uses exec() to reimage thet process
with whatever $0 was, so it should work in your case.

[1]: 
http://github.com/sunaku/wmiirc/commit/f29fd290296b8d91405dadf7efae2fb9e33c7e7e


Thanks. I also noticed that rumai has a work around one of my biggest 
annoyances with wmii 
(http://www.mail-archive.com/[email protected]/msg02221.html). Great.


Another minor annoyance. In wmii (latest hg version), the menu is called 
using wimenu. When I type a few characters and press tab, it behaves like 
left arrow key in dmenu. Rumani simply calls dmenu and tab completes the 
current word. Any idea how wimenu is implmented? Can the choice of the 
menu program be also made configurable?


Aditya




[wmii] Re: [ANN] YAML based Ruby wmiirc

2009-05-12 Thread steph
Hello,

Suraj Kurapati :
> In the mean time, you can:
>
> wget http://rubyforge.org/frs/download.php/56611/rumai-3.0.0.gem
> gem install ./rumai-3.0.0.gem

I've installed rumai-3.0.0 but i can't use yaml config: wmii starts
with an xterm and this error message in a xmessage window and in
wmiirc.log:

I, [2009-05-12T12:52:14.257436 #26663]  INFO -- : birth
E, [2009-05-12T12:52:14.601795 #26663] ERROR -- : "bad command" in
response to #,
#,
#,
#,
@countee=nil, @name=:data, @format=nil>, @name=:count, @format=4>,
#,
@name=:count, @format=4>, @countee=nil, @name=:data, @format=nil>],
@values={:tag=>0, :count=>166, :fid=>2, :data=>"bar on bottom\ncolmode
default\nnormcolors #c0c0c0 #0a0a0a #202020\ngrabmod Mod1\nborder
1\nfont -*-fixed-medium-r-*-*-18-*-*-*-*-*-*-*\nfocuscolors #ff
#285577 #4c7899", :offset=>0}> (Rumai::IXP::Error)
/home/st/.gem/ruby/1.8/gems/rumai-3.0.0/lib/rumai/ixp/transport.rb:126:in
`talk'
/home/st/.gem/ruby/1.8/gems/rumai-3.0.0/lib/rumai/ixp/transport.rb:294:in
`<<'
/home/st/.gem/ruby/1.8/gems/rumai-3.0.0/lib/rumai/ixp/transport.rb:328:in
`write'
/home/st/.gem/ruby/1.8/gems/rumai-3.0.0/lib/rumai/ixp/transport.rb:173:in
`open'
/home/st/.gem/ruby/1.8/gems/rumai-3.0.0/lib/rumai/ixp/transport.rb:327:in
`write'
/home/st/.gem/ruby/1.8/gems/rumai-3.0.0/lib/rumai/fs.rb:110:in `write'
/home/st/.wmii-3.5/config.rb:259:in `load_config'
/home/st/.wmii-3.5/wmiirc:42
I, [2009-05-12T12:52:25.320404 #26663]  INFO -- : death

I use wmii 3.6+debian-5 on testing
$ gem list -l

*** LOCAL GEMS ***

configuration (0.0.5)
inochi (1.0.0)
launchy (0.3.3)
librmpd (0.1.1)
rake (0.8.6)
rumai (3.0.0)
trollop (1.13)


Thank you for rumai. Before the config.yaml release, I was using
rumai-2.0.0 with the config.rb tag of your wmiirc which don't work
with rumai-3.0.0.

regards
-- 
steph