You are not logged in.

#26 2006-06-25 19:50:36

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: The wmii thread

My home box:
200606252241221024x768scrot5of.th.png


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#27 2006-06-26 00:34:46

AllTom
Member
Registered: 2006-01-02
Posts: 60
Website

Re: The wmii thread

_Gandalf_ wrote:

Close window = Alt + Shift + c

Well, MODKEY + Shift + C, and only by default. smile

Offline

#28 2006-06-26 00:52:39

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: The wmii thread

AllTom wrote:
_Gandalf_ wrote:

Close window = Alt + Shift + c

Well, MODKEY + Shift + C, and only by default. smile

AllTom, He used my configs so my answer was specific not in general wink

Offline

#29 2006-06-26 04:57:55

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: The wmii thread

For those, who experience utf8 troubles in wmii:

wget http://chronos.nsu.ru/fantoo/wiki/gtk1_utf8/XLC_LOCALE
sudo cp XLC_LOCALE /usr/lib/X11/locale/en_US.UTF-8

ctrl+alt+backspace wink


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#30 2006-06-26 15:44:54

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: The wmii thread

Hi,

Please read the below quote (from Mauricio Fernandez's email), And I'd like your opinion about it too, so please post your opinion within tonight and I'll mail them to Mauricio Fernandez...

Mauricio Fernandez wrote:

I've implemented a new extension mechanism similar in spirit to what you
describe. It works as follows:
* the configuration is split into three parts
  * $HOME/.wmii-3/wmiirc 
    Contains the core and the standard binding and applet definitions; it can
    be safely overwritten whenever there's a new ruby-wmii release. This
    allows me to fix bugs in the standard applets/bindings.
  * wmiirc-config.rb: the actual configuration. This file is preserved on
                      upgrades.
  * $HOME/.wmii-3/plugins/*.rb: third-party plugins with new key bindings and
                                bar applets
* standard bindings and applets are imported in wmiirc-config.rb as follows:

  from("standard") do
    use_bar_applet("volume", 999)
    use_bar_applet("mode", 900)
    use_bar_applet("status", 100)
   
    use_binding("dict-lookup")
    use_binding("execute-program-with-tag")
    use_binding("execute-action")
    use_binding("execute-program")
    ....
  }

#use_binding allows you to override the default key sequence associated to
the action, e.g. 
  use_binding("execute-program", "MODKEY-x")
would associate that action to MODKEY-x instead of the default MODKEY-p.
#use_bar_applet can also override the default position and label used by
wmiibar.

There are a number of advantages to this method:
* upgrading the main wmiirc script gets you all the new functionality and
  bugfixes in both the core (event loop, etc) and the standard
  bindings/actions (in case you're "importing" them in your wmiirc-config.rb)
* you can override the default settings easily in wmiirc-config.rb, which
  contains only the actual configuration (all the support code being in
  wmiirc)
* using and distributing extensions becomes very easy. All one needs to do is
  drop a .rb file under ~/.wmii-3/plugins and import the binding/applet in
  wmiirc-config.rb

Thanks...

Offline

#31 2006-06-26 16:22:27

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: The wmii thread

Oh I forgot, you can get the current code via darcs

darcs get --partial http://eigenclass.org/repos/ruby-wmii/

Offline

#32 2006-06-27 02:00:27

AllTom
Member
Registered: 2006-01-02
Posts: 60
Website

Re: The wmii thread

_Gandalf_ wrote:

Please read the below quote (from Mauricio Fernandez's email), And I'd like your opinion about it too, so please post your opinion within tonight and I'll mail them to Mauricio Fernandez...

Snap, I got the same e-mail.

Offline

#33 2006-06-27 02:21:35

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: The wmii thread

Yeah, this definitely sounds nice; it addresses my personal annoyance of having to go in and hack wmiirc in order to add applets and whatnot. And keeping wmiirc as a basic "core" is nice so, as he said, he can safely upgrade this file as ruby-wmii is updated. I guess that will sort of become the wmii lib; it'd be kind of nice if the wmii module were in a separate file, and have the "standard" apps alone in wmiirc, but then again, this is his project, not mine wink (also, perhaps this is what he's saying, and I'm just misintepreting). I guess the big thing is a) separating out config from code and b) giving us a convenient place to put in "third-party" stuff, both of which he's done. All in all, sounds like things are rolling along nicely.


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#34 2006-06-27 09:07:39

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: The wmii thread

I plan to rewrite wmiirc on python roll


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#35 2006-06-27 10:00:03

postlogic
Member
Registered: 2005-02-24
Posts: 410
Website

Re: The wmii thread

Stalwart wrote:

I plan to rewrite wmiirc on python roll

YES!

Offline

#36 2006-06-27 14:44:08

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: The wmii thread

ZOMG! NO! Evil Python! wink The Red Scared (from that Ruby psycho Why's "comic" about Ruby) tells it like it is. (j/k, Python's great too, just some wacky Ruby fanboyism).


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#37 2006-06-27 17:44:43

liem
Member
Registered: 2006-04-29
Posts: 71
Website

Re: The wmii thread

Stalwart, a Jeremy Hankins at the wmii mailing list have worked a bit on wmiirc in python.

http://wmii.de/pipermail/wmii/2006-June/002148.html

I would love to see it flourish. To bad I'm only just learning python.


Sebastian  A. Liem

Offline

#38 2006-06-27 20:17:59

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: The wmii thread

liem wrote:

I would love to see it flourish. To bad I'm only just learning python.

Me too


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#39 2006-06-27 20:41:05

AllTom
Member
Registered: 2006-01-02
Posts: 60
Website

Re: The wmii thread

Has anyone tried the version in Darcs? I haven't even had the time to check out a copy, although I'm interested and plan to do it before the release if I get to it soon enough. I'd like to see if I can't find any more areas of improvement before the release, so people won't have to go rewrite all of their bars like they had to for 0.2.1. smile

Offline

#40 2006-06-27 20:42:51

postlogic
Member
Registered: 2005-02-24
Posts: 410
Website

Re: The wmii thread

Stalwart wrote:
liem wrote:

I would love to see it flourish. To bad I'm only just learning python.

Me too

Me three, but it shows a great use of Python, and would be a fun way of learning more.

Offline

#41 2006-07-02 19:41:14

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: The wmii thread

for those who aren't subscribed to wmii mailing list, a Ruby IXP has been released today, Announcement -> http://wmii.de/pipermail/wmii/2006-July/002365.html

Offline

#42 2006-07-03 15:28:25

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: The wmii thread

Uhmm.. a kind of stupid question I have.  :oops:
Is it actually possible to create a view that has a name (like "work") and can be addressed by using the Alt-Number Shortcut? So.. a named view with a number, I guess.


Todays mistakes are tomorrows catastrophes.

Offline

#43 2006-07-03 16:16:36

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: The wmii thread

Yeah, if you're using mfp's (ruby) wmiirc (check the links at the beginning of this thread), it does this automatically. So, if you have:
1 2 work foo
then hitting 3 will take you to 'work', 4 to 'foo', etc. I do remember I hacked a bit on this functionality, but I don't remember what for... it may be that if you have only named views:
work foo bar
then you may not be able to address them by number? I'm not at my lappie w/ wmii atm, so I can't check; Gandalf or somebody can probably chime in with the answer. Anyway, I can post a little snippet later tonight that adds that functionality if it isn't there (I'm pretty sure it is though; if not in the 0.2.1 release of mfp's wmiirc, then in the 0.3.0 that's available via darcs). Regardless, I guess the answer is "yes, it's certainly possible, it depends on what wmiirc you're using/how it's configured"  big_smile


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#44 2006-07-03 18:35:10

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: The wmii thread

Yes it's possbile, use version 0.3.0 from darcs

darcs get --partial  http://eigenclass.org/repos/ruby-wmii

the official 0.3.0 release is soon

Offline

#45 2006-07-03 19:54:49

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: The wmii thread

Great! Thanks a ton! smile


Todays mistakes are tomorrows catastrophes.

Offline

#46 2006-07-04 15:57:44

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: The wmii thread

Just fyi, 0.3.0 was released today at mfp's site .


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#47 2006-07-04 21:27:19

AllTom
Member
Registered: 2006-01-02
Posts: 60
Website

Re: The wmii thread

I grabbed the new release this morning and finally got all of my bars ported. It was easier this time since the standard ones are getting better!

The things that hung me up most were changes in scope: normcolors, register, etc. are now accessed through the wmii parameter in a bar instead of from the active namespace. I also replaced my calls to clean_fork with Thread.new since that seems to be what the other bars were doing... Thankfully, this new version is a bit more understanding of exceptions and errors. smile

Now that we have plugins, I'm polishing my IM notification one so it might be easier to share if anyone is interested. It has scrollback with full history, plus flashing (and fading!) on new messages. I'm using weechat so it's my only supported client right now, but any IM program which can start programs on received messages should be workable.

Offline

#48 2006-07-04 22:18:02

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: The wmii thread

AllTom wrote:

Now that we have plugins, I'm polishing my IM notification one so it might be easier to share if anyone is interested.

Sounds delicious. Please do post when ready.


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#49 2006-07-04 22:51:13

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: The wmii thread

Did he just borrow my bars?  I think he totally just borrowed my bars.  I don't have a problem with it, but he should probably put a little comment in there saying where he got them if he is going to be a distributor of my code.

Offline

#50 2006-07-04 23:12:55

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: The wmii thread

Oh right... codemac contact him coz he Added in THANKS file my name not urs, I modified them and sent them to him as patches but I forgot to mention they are yours I'm sorry, My fault not his, sorry again :oops:

Offline

Board footer

Powered by FluxBB