Changing wallpaper with ROX's SendTo

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
Bruce B

Changing wallpaper with ROX's SendTo

#1 Post by Bruce B »

I had a little problem changing wallpaper with icewm. Basically what happens is the wallpaper setting doesn't hold after restarting X.

I don't know if others have had this problem or not. I found if I set the wallpaper with fvwm95 that the wallpaper settings stayed.

The problem is that it is sort of a hassle booting into fvwm95 to change the wallpaper setting then boot back into icewm. I don't know if it is just me or if others have this problem. Anyway I got to thinking maybe there is an easier way for me to change the wallpaper. I downloaded a .pup file that makes for a drag and drop operation to an icon on the desktop. The info on this .pup indicated (by the way I read it) that it may not work on icewm. Oh well, it doesn't work.

What I ended up doing was writing a little script so I could use ROX's SendTo feature to change the wallpaper. After installing the script I open ROX to a directory with my wallpapers. I right click on the icon for the .jpg I want to use, then use SendTo to change the wallpaper. The changes take effect after restarting X.

So if anyone is interested - I'll share the script with you. I call it "WallPaper"

----------------------
#!/bin/sh
cp "$@" /root/my-documents/wallpaper.jpg
----------------------

After writing the script with a text editor in
/root/Choices/SendTo/WallPaper make it executable.

You can use ROX to do this or type on the command-line the following:

chmod 755 WallPaper

This script will send a copy of the .jpg file to the location and name in the script. The first time you use it you will probably want to change the wallpaper in fvwm95 to get the settings to stick.

-------------------------

Hopefully, after reading this technique someone will figure out an even better way to do this. Also, you can drag and drop the WallPaper script from the SendTo folder to the desktop and drop the new wallpaper in the icon if you prefere.

--------------------------

EDITED ORGINAL POST WITH THE FOLLOWING:

I figured out how to get the wallpaper to change immediately without reboot. Make the script file as follows:

----------------------
#!/bin/sh
cp "$@" /root/my-documents/wallpaper.jpg
xli -onroot -quiet /root/my-documents/wallpaper.jpg
----------------------
Last edited by Bruce B on Fri 27 May 2005, 16:09, edited 1 time in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Keeping the background

#2 Post by Lobster »

Yes I have had problems with backgrounds - but they are not essential so have never mentioned. it. Same as you have described.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#3 Post by Pizzasgood »

Actually, GuestToo made roxapp that changed the wallpaper. By adding it to the sendto menu, the same effect can be achieved, except it is immediate. No need to restart X. There was a small conflict with IceWM wanting to use it's own wallpaper, though. My new Pizzapup edition comes with a fixed version already implemented.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#4 Post by GuestToo »

Puppy uses xli to set the wallpaper ... called in .xinitrc
Icewm has it's own background setter program (icewmbg)
Fluxbox has it's own background setter (bsetroot, and also fbsetbg)
and i made an alternate wallpaper setter program

i don't have much trouble with backgrounds, simply because i let Puppy take care of them ... you don't get the backgrounds built into an icewm theme, but i don't care myself

if you start icewm using startx icewm instead of startx icewm-session2, icewm will leave the background alone

fluxbox won't set backgrounds if you delete or rename my-applications/bin/bsetroot

my wallpaper program could set icewm's default wallpaper at the same time ... i need to update the wallpaper program anyway, it was setup for the 2.4 kernel, and i put a renice X command in my .xinitrc that probably should not be there if you use the 2.6 kernel

gelias

backgrounds

#5 Post by gelias »

I had the same problem. But I commented the lines that set backgrounds in configuration files:

/root/.fluxbox/init

/root/.icewm/preferences

and I use Puppy Control panel background setter or GuestToo script in Desktop.

Post Reply