Run in Terminal

From awesome
Jump to: navigation, search

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)
Personal tools