Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. evince test/te --*tab*--> evince test/test.pdf
  2.  
  3. local function shellcomp(command,cur_pos,ncomp)
  4. return awful.completion.shell(command,cur_pos,ncomp,"bash")
  5. end
  6.  
  7. local function run_promptbox()
  8. awful.prompt.run{
  9. prompt = 'Run: ',
  10. text = '',
  11. textbox= awful.screen.focused().mypromptbox.widget,
  12. completion_callback=shellcomp
  13. }
  14. end
  15.  
  16. awful.key({ modkey }, "r", run_promptbox, {description = "run prompt", group = "launcher"}),
Add Comment
Please, Sign In to add comment