0

I'd like to retrieve a string from the user using awesome. I'll use this string to dynamically create a new tag. I just need some function that I can call that will take input from the keyboard and return the text that was typed in.

three-cups
  • 4,375
  • 3
  • 31
  • 41

1 Answers1

1

Something like this should help you get started:

awful.prompt.run({ prompt = "Magic: " },
    mypromptbox[mouse.screen].widget, function(text)
        naughty.notify({ text = "you entered: " .. text })
    end))
Uli Schlachter
  • 9,337
  • 1
  • 23
  • 39