wmiirc-rumai

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

commit e1ee817fc09a9a1638575f42e524e6af25264842
parent 6e2a27810663ce5e06f2f571f116e71b8cdc50a8
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Tue, 12 May 2009 00:23:30 -0700

Revert "use wimenu instead of dmenu in key_menu()" because
wimenu does not yet support browsing choices via arrow keys

This reverts commit 7dc215c300be27a8034869e39246d3e8e7330a4f.

Diffstat:
config.rb | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/config.rb b/config.rb @@ -102,7 +102,17 @@ end # Instruction on what the user should enter or choose. # def key_menu choices, prompt = nil - words = %w[wimenu] + words = %w[dmenu -b -fn].push(CONFIG['display']['font']) + + words.concat %w[-nf -nb -sf -sb].zip( + [ + CONFIG['display']['color']['normal'], + CONFIG['display']['color']['focus'], + + ].map {|c| c.to_s.split[0,2] }.flatten + + ).flatten + words.push '-p', prompt if prompt command = shell_join(words)