On 7/24/2012 8:43 PM, Uli Schlachter wrote:
If someone wants to actually set a background *image* with this, here is the
nice and simple one-liner:
root.wallpaper(require(lgi).cairo.Pattern.create_for_surface(require(gears.surface)(/home/psychon/Wallpaper/wp_1920.jpg))._native)
do local
This is a very basic implementation of setting wallpaper
from within Awesome. It uses libX11 and imlib2, thus everything
works out of the box.
The public function is set_wallpaper(), which currently just
scales it to full screen.
Signed-off-by: Arvydas Sidorenko asi...@gmail.com
---
On Tue, Jul 24 2012, Arvydas Sidorenko wrote:
Hi Arvydas,
This is a very basic implementation of setting wallpaper
from within Awesome. It uses libX11 and imlib2, thus everything
works out of the box.
The public function is set_wallpaper(), which currently just
scales it to full screen.
On 07/24/2012 12:10 PM, Julien Danjou wrote:
On Tue, Jul 24 2012, Arvydas Sidorenko wrote:
Sorry for not collaborating too much on that.
What I wanted to achieve with this patch is to provide the lowest level
code, which that something implemented on top of root.wallpaper() could
rely on.
I
On Tue, Jul 24 2012, Arvydas Sidorenko wrote:
I took a look into XCB reference and that's right, silly move to use Xlib
from me.
But that introduces another issue - imlib2 requires Display and Visual data
structures from Xlib. Anyone for the task to port imlib2 to XCB? :P
Otherwise cannot
On 07/24/2012 02:49 PM, Julien Danjou wrote:
Uli said: root.wallpaper(gears.surface(/path/to/an/image))
So you should expect a Cairo surface as first argument. You can then use
it to paint directly on the root window pixmap. No need to use Imlib2 to
draw.
Apparently surface() uses imlib2, from
On 24.07.2012 12:45, Arvydas Sidorenko wrote:
[]
diff --git a/wallpaper.c b/wallpaper.c
new file mode 100644
index 000..e8abf1b
--- /dev/null
+++ b/wallpaper.c
@@ -0,0 +1,261 @@
+/*
+ * wallpaper.c - wallpaper manager
+ *
+ * This program is free software; you can redistribute it