wmiirc-rumai

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

commit db6bd422cbfd0c38c45ecd7c0871d9ce98907f0c
parent 9a8ef267698df311546ad7e9621800379c78534c
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Thu, 28 Sep 2006 11:44:18 -0700

[project @ 7f2e6cf19f7bc7b30251c71b3a026c2de1bbb826]

add number_view_buttons meth in rc.rb

Diffstat:
HISTORY | 10++++++++++
rc.rb | 7+++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/HISTORY b/HISTORY @@ -1,6 +1,16 @@ This is a history of major changes to {my wmii configuration}[http://people.ucsc.edu/~skurapat/wmii.html]. += 2006-09-28 + +* Added number_view_buttons method, in rc.rb, which numbers the view buttons displayed on the bar, from left to right. + + += 2006-09-27 + +* Included two main concurrency fixes for Ruby-IXP. + + = 2006-09-24 * Added two-stage event handling, to minimize the number of events missed while processing an event. diff --git a/rc.rb b/rc.rb @@ -160,6 +160,13 @@ def focus_view_matching aPattern end end +# Numbers the view buttons displayed on the bar, from left to right. +def number_view_buttons + Wmii.fs.bar.read.each_with_index do |b, i| + Wmii.fs.bar[b].data = "#{i + 1}:#{b}" + end +end + ## wmii-2 style client detaching