wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 0fc287ef046b6f734f70fbc3f7f464b9395642c0
parent a899efa6c1002790b035e5cf4dd2f201573fcd69
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Tue, 12 Sep 2006 21:52:55 -0700

[project @ 710baec967bd4403ba43ba6ea40761f9dab4f044]

[project @ 82]
up  event loop now uses Ixp instead of wmiir

Diffstat:
rc.rb | 2+-
wmiirc-config.rb | 6++++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/rc.rb b/rc.rb @@ -53,7 +53,7 @@ end # Focuses the client chosen from a menu. def focus_client_from_menu choices = Wmii.clients.map do |c| - format "%d. [%s] %s", c.index, c.tags, c.name.downcase + format "%d. [%s] %s", c.index, c.tags.join(' '), c.name.downcase end target = show_menu(choices) diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -18,6 +18,8 @@ =end $: << File.dirname(__FILE__) +require 'fs' +require 'wm' require 'rc' FS = Wmii.fs @@ -380,8 +382,8 @@ end ## WM event loop begin - IO.popen('wmiir read /event') do |io| - while event = io.readline.chomp + Ixp.open '/event' do |io| + while event = io.read.chomp type, arg = event.split($;, 2) case type