Skip to content

Commit

Permalink
do not list programs inside ~/.wmii-hg/ in action menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed May 12, 2009
1 parent f3e9a30 commit f29fd29
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions config.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f29fd29

Please sign in to comment.