Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
@user35186 Consider adding it as an answer. – jokerdino Sep 24 '12 at 12:48
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 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 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

update to awesome 3.5, and use mod+p

share|improve this answer

Your Answer


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.