wmiirc-rumai

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

commit 343d70e1a1fa056d662f5ea4bb3b323be9cf0c8c
parent 2178c15e46ab9b263f5c8d2161359804a358a950
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Sun,  2 Dec 2007 11:30:18 -0800

clean up

Diffstat:
wmiirc | 3++-
wmiirc-config.rb | 8+++++---
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/wmiirc b/wmiirc @@ -70,7 +70,7 @@ begin cmd = "dmenu -b -fn #{WMII_FONT.inspect} " << %w[-nf -nb -sf -sb].zip( Color::NORMAL.split[0,2] + Color::FOCUSED.split[0,2] - ).flatten!.map! {|s| s.inspect}.join(' ') + ).flatten.map {|s| s.inspect}.join(' ') cmd << " -p #{aPrompt.to_s.inspect}" if aPrompt @@ -95,6 +95,7 @@ begin end.compact.uniq.sort end + # terminate existing instances of this program fs.event << 'Start wmiirc' diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -66,9 +66,11 @@ EOF # Tagging Rules fs.tagrules = <<EOF +/.*notes.*/ -> note /Buddy List.*/ -> chat /XChat.*/ -> chat -/.*thunderbird.*/ -> mail +/Thunderbird.*/ -> mail +/Liferea.*/ -> mail /Gimp.*/ -> gimp /xconsole.*/ -> ~ /alsamixer.*/ -> ~ @@ -519,10 +521,10 @@ EOF # to be the same as the currently focused terminal. key Key::EXECUTE + 'x' do c = current_client - d = File.expand_path(c.label.read.sub(/^.*?:\s+/, '')) if c.exist? + d = File.expand_path(c.label.read.sub(/^.*?:\s+/, '')) rescue nil d = ENV['HOME'] unless File.directory? d.to_s - FileUtils.cd d do + FileUtils.cd(d) do system 'terminal &' end end