Categories
Computers

Awesome Popup Run Prompt

With a little help from the obvious library for awesome, I’ve replaced the stock run prompt in awesome with a popup run prompt. The popup is nice for no other reason than it’s easier to see the command being entered since it doesn’t conflict with task list and the tag list.

The popup is actually pretty straight forward to work. Simply create a wibox with a prompt widget in it and initialize the visibility to false. Then, on whatever keystroke, switch the visibility to true and use a callback function to hide it on completion.

I’ve also leveraged the prompt so that I can launch uzbl at a certain url or with a search. Also, while uzbl is running I can use the popup to change the url.

The slickest thing about the prompt; however, is that you can specify a history file for each prompt use. Now I have a history that I can scroll through when I launch the prompt. The same technique works for search strings as well. Awesome.

Leave a Reply

Your email address will not be published. Required fields are marked *