Run in Terminal
From awesome
Add this key definition to globalkeys in ~/.config/awesome/rc.lua:
awful.key({ modkey, "Shift" }, "r",
function ()
awful.prompt.run({ prompt = "Run in terminal: " },
mypromptbox[mouse.screen].widget,
function (...) awful.util.spawn(terminal .. " -e " .. ...) end,
awful.completion.shell,
awful.util.getdir("cache") .. "/history")
end)