commit 39de44160387816d0194a0faf1147a5d25ad1992 parent 582f24160ad886b6063f0cbe6f4250877eb5983b Author: Suraj N. Kurapati <sunaku@gmail.com> Date: Wed, 20 Sep 2006 21:27:24 -0700 [project @ 5f7cd79fd62b9883c36d38605136cf42bfe8507c] [project @ 117] up status bar uses open() add history info for today Diffstat:
HISTORY | | | 13 | +++++++++++++ |
wmiirc-config.rb | | | 6 | +++--- |
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/HISTORY b/HISTORY @@ -1,6 +1,19 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc.edu/~skurapat/wmii.html]. += 2006-09-20 + +* Included code from upcoming Ruby-IXP 1.1.0 release. + +* Changed syntax of Ixp::Node's method_missing facility to dereference a node only if the method is suffixed with an exclamation mark. + +* show_menu now returns *nil* if nothing was chosen. + +* Reverted to silent logging & recovery from error... xmessage & terminal are annoying! + +* Updated event loop for {wmii-3.1's /event overload bug fix}[http://wmii.de/pipermail/wmii/2006-September/002718.html]. + + = 2006-09-19 * Included Ruby-IXP 1.0.3 release. diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -416,16 +416,16 @@ FS.def.keys = SHORTCUTS.keys.join("\n") Thread.new do sb = FS.bar.status sb.create! - sb.colors = ENV['WMII_NORMCOLORS'] - loop do + sb.colors = ENV['WMII_NORMCOLORS'] + sb.data.open do |f| loop do diskSpace = `df -h ~`.split[-3..-1].join(' ') 10.times do cpuLoad = File.read('/proc/loadavg').split[0..2].join(' ') - sb.data = "#{Time.now.to_s} | #{cpuLoad} | #{diskSpace}" + f.write "#{Time.now.to_s} | #{cpuLoad} | #{diskSpace}" sleep 1 end end