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

2009-05-12 Thread Suraj Kurapati
On Tue, May 12, 2009 at 1:19 AM, 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

The problem has been solved.  Gem installations show work now:

$ gem list -r rumai

*** REMOTE GEMS ***

rumai (3.0.0, 2.1.0, 2.0.2, 2.0.1, 2.0.0)



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

2009-05-12 Thread Suraj Kurapati
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

> 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



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

2009-05-11 Thread Aditya Mahajan

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)

Does it usually take some time for the gem database to be
updated?


Yes, but it usually does not take this long.
I'll check with the RubyForge admins.

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


Thanks. This works perfectly.

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.


Is there any workaround short of uninstalling plan9?

Aditya



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

2009-05-11 Thread Suraj Kurapati
On Mon, May 11, 2009 at 11:58 AM, Aditya Mahajan  wrote:
> gem search rumai --remote
> *** REMOTE GEMS ***
> rumai (2.0.0)
>
> Does it usually take some time for the gem database to be
> updated?

Yes, but it usually does not take this long.
I'll check with the RubyForge admins.

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

Or you can build from source:

git clone git://github.com/sunaku/rumai.git
cd rumai
gem install inochi --development
rake gem
gem install ./pkg/rumai-3.0.0.gem



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

2009-05-11 Thread Aditya Mahajan

On Mon, 11 May 2009, Suraj Kurapati wrote:


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

The installation instruction say that I need to
install librmdp. Is it really needed, or will the configuration also work
without it (I do not use mpd, so do not want to install librmdp).


librmpd is optional.  If you don't want to use it, make sure to
comment-out (or delete) the "display:status:music" section and the
"music" key bindings in your config.yaml file.

I'll update the README later today to reflect this information.


Thanks. I tried to install it, and realized that rubygems still installs 
rumai 2.0.0. Does it usually take some time for the gem database to be 
updated?


gem search rumai --remote

*** REMOTE GEMS ***

rumai (2.0.0)

Aditya



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

2009-05-11 Thread Suraj Kurapati
On Mon, May 11, 2009 at 8:28 AM, Aditya Mahajan  wrote:
> The installation instruction say that I need to
> install librmdp. Is it really needed, or will the configuration also work
> without it (I do not use mpd, so do not want to install librmdp).

librmpd is optional.  If you don't want to use it, make sure to
comment-out (or delete) the "display:status:music" section and the
"music" key bindings in your config.yaml file.

I'll update the README later today to reflect this information.



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

2009-05-11 Thread Suraj Kurapati
On Mon, May 11, 2009 at 7:37 AM, Kris Maglione  wrote:
> Very cool. I'm even considering packaging it in the next release

Thanks Kris, I am honored by this gesture.

> (but the Rumai gem dependency is kind of bugging me).

It's easier for me to maintain these projects when they are separate.

> Looking at your Rumai docs, though, I'm starting to think that 'wmii' needs
> a cannonical pronounciation...

I'm curious, how do *you* pronounce wmii?  ;-)



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

2009-05-11 Thread Aditya Mahajan

On Mon, 11 May 2009, Suraj Kurapati wrote:


Hello,

I'd like to announce a new milestone in the evolution of my wmiirc:

   http://github.com/sunaku/wmiirc/

The entire configuration is now described in YAML, with Ruby inside:

   http://github.com/sunaku/wmiirc/blob/master/config.yaml

Feel free to fork my wmiirc on GitHub and contribute your changes.


This is very interesting. The installation instruction say that I need to 
install librmdp. Is it really needed, or will the configuration also work 
without it (I do not use mpd, so do not want to install librmdp).


Thanks,
Aditya



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

2009-05-11 Thread Kris Maglione

On Mon, May 11, 2009 at 02:43:07AM -0700, Suraj Kurapati wrote:

I'd like to announce a new milestone in the evolution of my wmiirc:

The entire configuration is now described in YAML, with Ruby inside:


Very cool. I'm even considering packaging it in the next release 
(but the Rumai gem dependency is kind of bugging me).


Looking at your Rumai docs, though, I'm starting to think that 
'wmii' needs a cannonical pronounciation...


--
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




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

2009-05-11 Thread Thomas Dahms

On Mon, 11 May 2009, Suraj Kurapati wrote:


I'd like to announce a new milestone in the evolution of my wmiirc:


Nice and well documented.
I really like the idea to get the current directory before opening a new 
terminal with Mod1-Control-x in your setup. I took the idea and did it for 
the sh version of wmiirc:


Key $MODKEY-Return
 CURPATH=`wmiir read /client/sel/label | sed 's/.*: //'`
 [[ -d $CURPATH ]] && cd $CURPATH
 eval wmiir setsid $WMII_TERM &

Thomas