wmiirc-rumai

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

commit 18ce840698161c56956db8a50a97a05b99f57377
parent 7d0a8acd042393b6b50c090bacdf7a24d825dc69
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Mon, 11 May 2009 23:00:55 -0700

do not list programs inside ~/.wmii-hg/ in action menu

Diffstat:
config.yaml | 14+++++---------
1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/config.yaml b/config.yaml @@ -477,16 +477,13 @@ control: #--------------------------------------------------------------------------- Mod1-Control-i: | # run internal action chosen from a menu - choices = @action_menu + ACTIONS.keys - - if choice = key_menu(choices, 'run action:') - action(choice) or # action is a Ruby block - system(choice << '&') # action is a program + if choice = key_menu(ACTIONS.keys, 'run action:') + action choice end Mod1-Control-e: | # run external program chosen from a menu - if choice = key_menu(@program_menu, 'run program:') - system(choice << '&') + if choice = key_menu(@programs, 'run program:') + system choice << '&' end Mod1-Control-u: | # focus view chosen from a menu @@ -721,8 +718,7 @@ control: reload_config rehash: | # scan for available programs and actions - @program_menu = find_programs(ENV['PATH'].squeeze(':').split(':')) - @action_menu = find_programs(File.dirname(__FILE__)) + @programs = find_programs(ENV['PATH'].squeeze(':').split(':')) clear: | # kill all clients # firefox's restore session feature does not