On Mon, Jul 23 2012, Ignas Anikevicius wrote: > 1) Write some C code which would be integrated in awesome capi > and it would just do some basic setting via a single command. > > 2) Write some C code and LUA bindings and write all the logic in > LUA. This would mean, that it might be possible to have > something more interesting. E.g. different wallpapers on > different tags/screens and even more. > > Can we use lgi for that? As far as I understood, it's impossible > but I might be wrong. > > If we choose the option B2 option, then awesome will be even more > awesome... but the question is whether having bg setter logic inside > awesome is needed?
The API should be very simple: add an .background property to all screen
objects that can be set with any instanciated image.
screen[0].background = image("/path/to/an/image")
And just write the C code setting the wallpaper when .background is
modified, and returning a new image if something wants to read the
background. That should not be hard.
--
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
pgpu0sSwfjxTS.pgp
Description: PGP signature
