Advertisement
Ebscriptwalker

prompt.cc.rc.lua

Jul 23rd, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Prompt
  2. awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
  3. {description = "run prompt", group = "launcher"}),
  4.  
  5. awful.key({ modkey }, "x",
  6. function ()
  7. awful.prompt.run {
  8. prompt = "Run Lua code: ",
  9. textbox = awful.screen.focused().mypromptbox.widget,
  10. exe_callback = awful.util.eval,
  11. history_path = awful.util.get_cache_dir() .. "/history_eval"
  12. }
  13. end,
  14. {description = "lua execute prompt", group = "awesome"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement