pic2root
pic2root
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.
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.
- Attachments
-
- pic2root-1.0.pet
- (4.52 KiB) Downloaded 713 times
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:
vovchik
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:
With thanks and kind regards,[/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)
vovchik
Sure. Here you go.
compiled with the following options:
compiled with the following options:
Code: Select all
g++ -Wall -pedantic -O3 -o pic2root.c pic2root `pkg-config --cflags --libs gtk+-2.0 gmodule-export-2.0`
- Attachments
-
- pic2root.tar.gz
- (861 Bytes) Downloaded 640 times
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....
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....
- Attachments
-
- xsri.tar.gz
- (10.77 KiB) Downloaded 677 times
i get the same errors with pic2root?
xsri or pic2root - how do i get it to keep changes at next boot up?
xsri or pic2root - how do i get it to keep changes at next boot up?
Last edited by harii4 on Sat 07 May 2011, 17:18, edited 1 time in total.
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.
- Bernie_by_the_Sea
- Posts: 328
- Joined: Wed 09 Feb 2011, 18:14
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?
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?
- Attachments
-
- xsrishot.jpg
- (120.59 KiB) Downloaded 721 times
its the base image -What is a root image anyway?
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.
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.
- Bernie_by_the_Sea
- Posts: 328
- Joined: Wed 09 Feb 2011, 18:14
It still does the same thing, background ONLY inside urxvt.harii4 wrote:its the base image -What is a root image anyway?
need to add --set
try xsri --set /mnt/home/lightning.jpg
xsri --help for more options
- Attachments
-
- xsrishot02.jpg
- (176.84 KiB) Downloaded 702 times
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.
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.
- Bernie_by_the_Sea
- Posts: 328
- Joined: Wed 09 Feb 2011, 18:14
Okay, the "Override window manager control of pinboard and panels" was clicked but the "Blackbox root menus hack" was not.WarMocK wrote: Check out if the checkboxes for "Blackbox root menus hack" and "Override window manager control of pinboard and panels" are clicked.
Thanks
BTW, I think I sorta like having a different wallpaper in urxvt. Just have to find the right one.