0

How to set up background image for prompt box in awesomewm?

Tried:

  • mypromptbox:set_bg() - Crash
  • mypromptbox:set_bgimage() - Crash
  • mypromptbox:run({textbox = myWiboxBackgroundWidget}) - No result
  • mypromptbox = awful.widget.prompt({textbox = myWiboxBackgroundWidget}) - No result

Any ideas?

P.S. I need something like mywibox[s]:set_bg(image), but for prompt box.

smt
  • 91
  • 1
  • 9

1 Answers1

1

Put the promptbox into a wibox.widget.background widget.

Uli Schlachter
  • 9,337
  • 1
  • 23
  • 39
  • Would you give an example please? How do I construct wibox.widget.background? – Ben Jul 08 '15 at 21:06
  • Depends on your awesome version. In the simplest case it's just wibox.widget.background(promptbox, "#ff0000") (and this returns a new widget which you would then add to some wibox) – Uli Schlachter Jul 11 '15 at 13:32