Launch In Terminal Keyword

This is a modified run command that accepts and intial ":" keyword to indicate launching commands in a terminal.

For instance, ":mc" would open a terminal and run mc.

Or my favorite ":aptitude".

This is all done in the ~/.config/awesome/rc.lua

This is the key definition that you would add to your globalkeys: awful.key({ modkey,          }, "r",               function  awful.prompt.run({prompt="Run:"}, mypromptbox[mouse.screen].widget, check_for_terminal, clean_for_completion, awful.util.getdir("cache") .. "/history") end)

These are the functions it needs. I just added them to the bottom of my rc.lua and that seems to work just fine: --