How to get xli X image utility to set backgroung image.?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

How to get xli X image utility to set backgroung image.?

#1 Post by sunburnt »

I found xli as a utility to set the wallpaper. Should be better than using ROX I hope.
But I run it as examples show and it doesn`t change the wallpaper.
It will display an image in a new window, but nothing using the "-onroot" option. No Error.
I exited X and restarted it thinking that might reset it, no wallpaper but xli still won`t work.

# What am I missing here.? ... Is it that JWM is hogging it.?

### Update: I now see the image briefly when JWM is restarted, so I guess JWM is in the way.
.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#2 Post by SFR »

Hey Sunburnt

As far as I understand that, xli uses the real X root window, whereas ROX displays its own layer that is on top of it, hence covers it.
If you disable ROX pinboard, you'll see the underlying layer.
I'm afraid only ROX is able to change its own layer's background...

BTW, what inconvenience you have faced in using the native ROX way?

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#3 Post by sunburnt »

Howdy SFR; I posted an app in Cutting Edge that shows a separate wallpaper on each desktop.

Reloading JWM causes the screen to flash. Xli or other apps may do no better though.
Last edited by sunburnt on Tue 17 Dec 2013, 16:41, edited 1 time in total.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#4 Post by SFR »

AFAIK JWM has nothing to do with the pinboard, it's ROX domain.
If you mean "JWM Configuration Manager" and its "Desktop Background" button, it simply calls the default wallpaper setter (Nathan's in Slacko), which in turn uses the ROX SOAP mechanism to set the wallpaper.

As for screen flashing, it's more visible when the whole pinboard is being restarted with 'rox -p ~/Choices...' (this also kills conky, xonclock and maybe other apps).
Try to use the mentioned ROX SOAP - it behaves much better, e.g.:

Code: Select all

WALLPAPER=/usr/share/backgrounds/default.jpg
STYLE=Stretch     # also: Tile, Centre, Scale

rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
 <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
  <SetBackdrop>
   <Filename>$WALLPAPER</Filename>
   <Style>$STYLE</Style>
  </SetBackdrop>
</env:Body> </env:Envelope>
EOF
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#5 Post by sunburnt »

Thanks SFR; I`ve seen that code before in Nathan F`s wallpaper setter.
But I didn`t catch that how it changed the picture a lot nicer than restarting JWM.

My thought with Xli was a more universal wallpaper setup that was not DM specific.
I`ll probably look at it further as it may come in handy.

For now my app works much nicer. Thanks again.! Terry B.
.

Post Reply