Author |
Message |
WarMocK

Joined: 05 Jul 2007 Posts: 169
|
Posted: Sat 18 Sep 2010, 19:02 Post subject:
pic2root Subject description: set wallpapers from the commandline |
|
Heyho people,
since I am working on an experimental user interface for a gaming distro I needed a tool to show a wallpaper that does not ship an icon grid and a file manager with it (sorry ROX). So I used the GTK API and wrote a tiny binary on my own: pic2root.
The tool runs from the commandline and is easy to use:
pic2root /path/to/imagefile
The specified image is scaled and stretched automatically to meetthe screen resolution and finally rendered onto the desktop's root window. So if you need a simple and small wallpaper setter, here you are. Have fun with it.
Description |
|

Download |
Filename |
pic2root-1.0.pet |
Filesize |
4.52 KB |
Downloaded |
556 Time(s) |
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Sun 19 Sep 2010, 06:51 Post subject:
any source? |
|
Dear WarMocK,
Could you kindly post the source - no matter what shape it is in - and your compile line. I want to compile it for older puppies and test it out. It will not run, for example, in puppy 3.01:
Quote: |
[/mnt/hdb6/install/pic2root/pic2root-1.0/usr/bin]-> ./pic2root
./pic2root: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./pic2root)
./pic2root: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./pic2root)
|
With thanks and kind regards,
vovchik
|
Back to top
|
|
 |
WarMocK

Joined: 05 Jul 2007 Posts: 169
|
Posted: Sun 19 Sep 2010, 09:34 Post subject:
|
|
Sure. Here you go.
compiled with the following options:
Code: | g++ -Wall -pedantic -O3 -o pic2root.c pic2root `pkg-config --cflags --libs gtk+-2.0 gmodule-export-2.0` |
Description |
|

Download |
Filename |
pic2root.tar.gz |
Filesize |
861 Bytes |
Downloaded |
504 Time(s) |
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Sun 19 Sep 2010, 11:16 Post subject:
segfault |
|
Dear WarMock,
Thanks. I had to change the compile line (-o bit) , and it compiled fine. However, I get a runtime segfault. I also just compiled this little thing for setting the root image which hs many, many options. Have a look. It is, stripped, some 4x larger than your little prog, but seems to do a great deal. Have a look....
Description |
|

Download |
Filename |
xsri.tar.gz |
Filesize |
10.77 KB |
Downloaded |
521 Time(s) |
|
Back to top
|
|
 |
harii4

Joined: 30 Jan 2009 Posts: 449 Location: La Porte City, IA , U.S.A.
|
Posted: Sat 26 Mar 2011, 12:14 Post subject:
|
|
i get the same errors with pic2root?
xsri or pic2root - how do i get it to keep changes at next boot up?
_________________ 3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.
Last edited by harii4 on Sat 07 May 2011, 13:18; edited 1 time in total
|
Back to top
|
|
 |
Bernie_by_the_Sea

Joined: 09 Feb 2011 Posts: 329
|
Posted: Sat 26 Mar 2011, 13:52 Post subject:
|
|
Using xsri with Wary 500 I get wallpaper ONLY inside urxvt.
What is a root image anyway?
It does persist inside urxvt so where is the root image located so I can get rid of it?
Description |
|

Download |
Filename |
xsrishot.jpg |
Filesize |
120.59 KB |
Downloaded |
495 Time(s) |
|
Back to top
|
|
 |
harii4

Joined: 30 Jan 2009 Posts: 449 Location: La Porte City, IA , U.S.A.
|
Posted: Sat 26 Mar 2011, 14:19 Post subject:
|
|
Quote: | What is a root image anyway? |
its the base image -
need to add --set
try xsri --set /mnt/home/lightning.jpg
xsri --help for more options
_________________ 3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.
|
Back to top
|
|
 |
Bernie_by_the_Sea

Joined: 09 Feb 2011 Posts: 329
|
Posted: Sat 26 Mar 2011, 16:04 Post subject:
|
|
harii4 wrote: | Quote: | What is a root image anyway? |
its the base image -
need to add --set
try xsri --set /mnt/home/lightning.jpg
xsri --help for more options |
It still does the same thing, background ONLY inside urxvt.
Description |
|

Download |
Filename |
xsrishot02.jpg |
Filesize |
176.84 KB |
Downloaded |
479 Time(s) |
|
Back to top
|
|
 |
WarMocK

Joined: 05 Jul 2007 Posts: 169
|
Posted: Sat 26 Mar 2011, 19:11 Post subject:
|
|
Bernie_by_the_Sea:
You are using ROX, which draws a frameless window over the root window and puts a background image into it as a wallpaper. If you see the wallpaper drawn onto the root window (either by pic2root or xsri) this means that either the ROX pinboard (the wallpaper window) isn't properly configured, or urxvt doesn't recognize the pinboard as the "root window" of your desktop.
Check out if the checkboxes for "Blackbox root menus hack" and "Override window manager control of pinboard and panels" are clicked.
|
Back to top
|
|
 |
Bernie_by_the_Sea

Joined: 09 Feb 2011 Posts: 329
|
Posted: Sat 26 Mar 2011, 19:50 Post subject:
|
|
WarMocK wrote: |
Check out if the checkboxes for "Blackbox root menus hack" and "Override window manager control of pinboard and panels" are clicked. |
Okay, the "Override window manager control of pinboard and panels" was clicked but the "Blackbox root menus hack" was not.
Thanks
BTW, I think I sorta like having a different wallpaper in urxvt. Just have to find the right one.
|
Back to top
|
|
 |
|