-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Am 28.12.2010 23:53, beo wulf wrote:
> Does awesome have a textbox wiibox that is editable? Basically, I want
> post-it notes implemented in lua/awesome.
The closest that we have is awful.prompt[1].
Basically, you create a textbox (let's call it pete) and then do something like:
function my_foo_bar(foo)
print("The user entered: ", foo)
end
awful.prompt({}, pete, my_foo_bar)
This will let the user enter some text and when he presses enter, my_foo_bar
will be called. You can read the docs for what other stuff awful.prompt can do
(e.g. completion via the tab key, input history via arrow-up/arrow-done).
Uli
[1] http://awesome.naquadah.org/doc/api/modules/awful.prompt.html
- --
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBCAAGBQJNG110AAoJECLkKOvLj8sGFj4IALZtHPSJhKuV9hBM4oZBaeg6
scvETIvJ5T6lQFvO+DT9/IvvOydCdvvGQmPsqMBfHpikJ8SFCA13t1LuhgL67wh8
L1xTwhhxFq342M8fjdie9XXezo7q4RyB/umLiaylZr3VzXHJLi0q+Gu67ZSfVRsG
hm4bkfJdc2s289O18TZZuhvpaYvF1Mbj2gIuq1cDMCjp5SS5f2PhF+z0/98SENXr
S18bakXmfo08fTsrHWtTPQzlXuInkFXpAWHhBjdJ9HZ6pBr3cjRxjEQCHckCmyqk
KrOkfDdWVvGO6/AyFYRctawBLcgOfeGcJblYQCzEljP4lelZ0qZ8JqQ4+AUiHl0=
=GHLF
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].