Re: [dev] wmii: Question on wmiirc_local.py

2009-10-09 Thread Thomas Dahms
On Wed, 7 Oct 2009 19:15:51 -0400 Kris Maglione wrote: > > - pygmi has to be imported into wmiirc_local.py. This should be > > documented somewhere. > > I rather thought that would be a given. Very rarely does a > python script start with special variables or modules in its > namespace, even

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-07 Thread Kris Maglione
On Thu, Oct 08, 2009 at 12:21:57AM +0200, Thomas Dahms wrote: - pygmi has to be imported into wmiirc_local.py. This should be documented somewhere. I rather thought that would be a given. Very rarely does a python script start with special variables or modules in its namespace, even when it's

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-07 Thread Thomas Dahms
On Tue, 6 Oct 2009, Kris Maglione wrote: On Wed, Sep 30, 2009 at 03:09:43PM -0400, Kris Maglione wrote: Well, to start with, you don't need to import all of those modules. Aside from that, you bring up a good point: key bindings are interpolated from events.keydefs when they're defined. You're

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-07 Thread Kris Maglione
On Wed, Oct 07, 2009 at 08:56:23PM +0200, Moritz Wilhelmy wrote: The people without a Super-Key should just remap their capslock or something like that. That works fine on my Model M. Regards Hadn't thought of that. I was just going to write a new welcome script that asked them if they had a

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-07 Thread Moritz Wilhelmy
On Tue, Oct 06, 2009 at 06:38:01PM -0700, Suraj Kurapati wrote: > On Tue, Oct 6, 2009 at 1:49 PM, Kris Maglione wrote: > > I've thought about changing them all to Mod4, actually. > > Hurray! +1 > The people without a Super-Key should just remap their capslock or something like that. That work

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-06 Thread Suraj Kurapati
On Tue, Oct 6, 2009 at 1:49 PM, Kris Maglione wrote: > I've thought about changing them all to Mod4, actually. Hurray! +1

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-06 Thread Kris Maglione
On Thu, Oct 01, 2009 at 10:06:25AM +0200, Thomas Dahms wrote: Works fine now but gives rise to another problem: Keeping the modules in /etc, they don't get byte compiled on first import, as a normal user has no write access there. As a workaround you could compile them at make time, but optionall

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-06 Thread Kris Maglione
On Wed, Sep 30, 2009 at 03:09:43PM -0400, Kris Maglione wrote: Well, to start with, you don't need to import all of those modules. Aside from that, you bring up a good point: key bindings are interpolated from events.keydefs when they're defined. You're changing them after that point. I'll see

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-01 Thread Thomas Dahms
Update and one more bug below. On Thu, 1 Oct 2009 10:06:25 +0200 Thomas Dahms wrote: > Works fine now but gives rise to another problem: Keeping the > modules in /etc, they don't get byte compiled on first import, as a > normal user has no write access there. As a workaround you could > compile

Re: [dev] wmii: Question on wmiirc_local.py

2009-10-01 Thread Thomas Dahms
On Thu, 1 Oct 2009 00:25:04 -0400 Kris Maglione wrote: > On Wed, Sep 30, 2009 at 09:32:07PM +0200, Thomas Dahms wrote: > >I should have tried before replying. This did not work. I had > >to copy the whole python/ from /etc/wmii-hg to ~/.wmii-hg and > >edit wmiirc.py in there. I guess the "impor

Re: [dev] wmii: Question on wmiirc_local.py

2009-09-30 Thread Kris Maglione
On Wed, Sep 30, 2009 at 09:32:07PM +0200, Thomas Dahms wrote: I should have tried before replying. This did not work. I had to copy the whole python/ from /etc/wmii-hg to ~/.wmii-hg and edit wmiirc.py in there. I guess the "import wmiirc" in python/wmiirc gives always priority to the working di

Re: [dev] wmii: Question on wmiirc_local.py

2009-09-30 Thread Thomas Dahms
On Wed, 30 Sep 2009 15:09:43 -0400 Kris Maglione wrote: > For now, just copy wmiirc.py to ~/.wmii and edit that. I should have tried before replying. This did not work. I had to copy the whole python/ from /etc/wmii-hg to ~/.wmii-hg and edit wmiirc.py in there. I guess the "import wmiirc" in p

Re: [dev] wmii: Question on wmiirc_local.py

2009-09-30 Thread Kris Maglione
On Wed, Sep 30, 2009 at 09:16:00PM +0200, Thomas Dahms wrote: Btw, the history files are named history.prog and history.action for the Python wmiirc and history.progs and history.actions for the sh version. Only history.tags is common. May be good to have the same names in order to reuse the h

Re: [dev] wmii: Question on wmiirc_local.py

2009-09-30 Thread Thomas Dahms
On Wed, 30 Sep 2009 15:09:43 -0400 Kris Maglione wrote: > Well, to start with, you don't need to import all of those > modules. Aside from that, you bring up a good point: key > bindings are interpolated from events.keydefs when they're > defined. You're changing them after that point. I'll se

Re: [dev] wmii: Question on wmiirc_local.py

2009-09-30 Thread Kris Maglione
On Wed, Sep 30, 2009 at 08:53:59PM +0200, Thomas Dahms wrote: I tried the Python wmiirc today. As I understand the documentation, all I have to do is put wmiirc_local.py to ~/.wmii-hg and leave everything else in /etc. Then wmii -r python/wmiirc starts with the Python wmiirc, but anything in wm

[dev] wmii: Question on wmiirc_local.py

2009-09-30 Thread Thomas Dahms
Hi, I tried the Python wmiirc today. As I understand the documentation, all I have to do is put wmiirc_local.py to ~/.wmii-hg and leave everything else in /etc. Then wmii -r python/wmiirc starts with the Python wmiirc, but anything in wmiirc_local.py is ignored. So far I tried only key bindings