Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using the Awesome window manager - I like it.

When I press mod+R I get the run command on the top left of the screen. Here if I type in a command exactly correct it runs the application.

How can I make the mod+R box smart? Example: If I press 'f' and then 'up arrow' it will auto search for applications (or through my run history) that begin with 'f' (like firefox).

share|improve this question
1  
@user35186 Consider adding it as an answer. –  jokerdino Sep 24 '12 at 12:48
add comment

2 Answers 2

up vote 4 down vote accepted

the standard awesome prompt just doesn't provide this function, you'd have to switch to a different one, I'm using http://code.google.com/p/bashrun2 which behaves very much like standard bash, it won't do the firefoxy thing though (unless you use things like !f[ENTER]). After installing bashrun you need to edit /etc/xdg/awesome/rc.lua to change mod+r default behaviour, find the lines:

-- Prompt
awful.key({ modkey },            "r",     function () mypromptbox[mouse.screen]:run() end),

and by applying information from http://awesome.naquadah.org/wiki/FAQ#How_to_use_a_keycode_in_a_keybinding.3F we arrive at something like

-- Prompt
awful.key({ modkey },            "r",     function () exec("bashrun2") end),

This seemes fine to me, but I havent tested this lua code myself.

Hope this helps.

EDIT: I (the original poster) had to do:

awful.key({ modkey, }, "r",         function () awful.util.spawn('bashrun2') end)
share|improve this answer
add comment

update to awesome 3.5, and use mod+p

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.