Set different Wallpapers on each Desktop. FIXED Again.

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

Set different Wallpapers on each Desktop. FIXED Again.

#1 Post by sunburnt »

This app I wrote for what seems to be a popular desire: Different wallpapers for each desktop.

# Apparently only KDE does this wallpaper per desktop thing. Seems odd that no others have it.
There is Wallpapoz that does it also: http://vajrasky.wordpress.com/
It requires Python, and is for Gnome and Xfce ( I think...).

I saw a post a while back about setting up Rox to do this, but it didn`t work for me...
Currently it only does Rox desktop. But I`ll add other DMs too as I figure them out.

You write a wallpaper list to a file: wallpapers.lst, there`s one included just edit it how you want.
It can have any number of /path/wallpapers in it, but only up to the number of desktops is used.
I will be making a GUI to do this, but I want to make it into a tray app.

# To test run in rxvt, run it with the DM as argument:
wallpapers rox


#To install so it starts at boot, use argument for Puppy+Rox: ( makes Startup file )
wallpapers -ipr

#To uninstall wallpapers, use argument for Puppy: ( removes Startup file )
wallpapers -ip


# To stop wallpapers, run again with "stop":
wallpapers stop

# For help wallpapers, run run with no argument, or "-h", or "help":
wallpapers


# It uses "wmctrl" that I compiled on Precise. But it`s a simple utility, maybe work for any arch.


And added a over-range check for the wallpaper array.
Changed command to set wallpaper image. Thanks SFR..!
.
Last edited by sunburnt on Sat 21 Dec 2013, 17:34, edited 15 times in total.

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

#2 Post by sunburnt »

Reworked it and fixed the problem of no wallpaper at start up.

Also made it copy everything to /tmp so the H.D. isn`t over-worked.

NOTE: It still has the problem, but I`ve got a more complex fix working.
.

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#3 Post by neerajkolte »

Hi,
Sorry to make old thread alive again.
But I am looking to do this
9Having 2 wallpapers on my two monitors.)

Where is the link to this utility.

Or do I have to use this Wallpapoz utility.

Thanks.

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#4 Post by saintless »

neerajkolte wrote:HWhere is the link to this utility.
I think it is the same utility but I doubt it will work in puppy without modifications.
http://www.murga-linux.com/puppy/viewto ... 219#773219
http://smokey01.com/saintless/source-co ... Papers.zip

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#5 Post by neerajkolte »

Thanks saintless, I will take a look at it. But I doubt I will know what to change in it.
Does Debian dog also have Rox desktop?

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#6 Post by saintless »

Hi, Neeraj.
Yes we have Jwm/Rox + Icewm version and OpenBox version.
Here is something to try in Puppy linux:

Download and extract wallpapers.zip archive (files taken from DD and I think Terry made some fixes in the scripts included in this archive). Maybe someone will try to make working pet package from it some day.
Copy desktop.ctrl, picscale, rox_setbg, wallpapers.gui, wmctrl in /usr/bin
Type wallpapers.gui in terminal and add 4 wallpapers pictures, then click Applay and Start Wallpapers (Start Wallpapers button should change to Stop Wallapers).
I just changed the section in /root/.jwmrc for the test in KDPup. But you must do the change inside the file that generates /root/.jwmrc virtual desktops section. I think it should be /root/.jwm/jwm-personal or something similar.
Virtual desktops section should look like this in /root/.jwmrc

Code: Select all

   <!-- Number of virtual desktops -->
   <Desktops  width="4" height="1">
    <Desktop Name="One">
     <Background type="command">desktop.ctrl 1</Background>
    </Desktop>
    <Desktop Name="Two">
     <Background type="command">desktop.ctrl 2</Background>
    </Desktop>
    <Desktop Name="Three">
     <Background type="command">desktop.ctrl 3</Background>
    </Desktop>
    <Desktop Name="Four">
     <Background type="command">desktop.ctrl 4</Background>
    </Desktop>
   </Desktops>
Exit X and startx again and you should have different picture added in wallapers.gui clicking each desktop.

Toni
Attachments
WallPapers.zip
(106.44 KiB) Downloaded 235 times

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

#7 Post by sunburnt »

Hi neerajkolte and Toni (saintless); I just got the first notice in my email.
The Puppy site is starting to drop my notices.

WallPapers doesn`t have anything to do with multiple monitors.
I looked into it when I wrote WallPapers but I can`t remember the details.
I think it`d be easy to add to WallPapers so it would do multiple monitors.
It would mean more config. files to hold the extra monitor`s data.

I don`t think I ever made a final version of WallPapers for Puppy.
But it`s only a small difference between DebianDog and Puppy as I recall.
No Puppy users seemed interested in WallPapers, so no Pet pkg made.
If there were much interest I`d make a Pet pkg. It`d be easy to do.


Hey Toni; I`m working on an idea that would make use of DebianDog.
I have to get it to a prototype stage before any O.S. work can be done.
I hope to get to that point in a little bit. I`ll let you know how I`m doing.
.

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#8 Post by neerajkolte »

Ahh sorry for not being clear.
I might have interpreted this thread wrongly.


I don't want Different wallpapers on different virtual desktops. (I hope I am getting your post right. There is also an ongoing thread about it.)

I want different wallpapers to be displayed on my two monitors. (dual monitor setup)

I heard it can be done in xfce and some others.

I was hoping to do it in ROX.

I am searching the net but yet to come up with anything.
Can ROX do that?

Thanks.

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#9 Post by neerajkolte »

Hi sunburnt,

I am using Fatdog64-700.
I would like the app if it would place 2 wallpapers on 2 monitors.

If you could make the pet. I would test it on Fatdog.
Thanks.

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

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

#10 Post by sunburnt »

In all the work with Rox we did for DebianDog I never saw anything for it.
Multi. monitors is handled by xorg I believe, so a utility is needed for that.

It depends on how the monitors are being managed of course.
If it`s one big monitor, then I would think that nothing else is needed.
But if each monitor is an individual desktop, then xorg`s code controls it.
It`s possible that different WMs and DMs could be run on each monitor.

Maybe saintless or someone else can provide more info about it.?
.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#11 Post by saintless »

Nice to chat with you again, Terry :)
I will wait for more information about your new project.

About dual monitor setup I do not know much. I guess it is still possible to run virtual desktop 1 on first monitor and virtual desktop 2 on second monitor with different wallpapers somehow.
There is also multiseat setup with xephyr or similar:
http://forums.debian.net/viewtopic.php?f=16&t=48445
Also Stemsee mentioned as alternative Xnest and Xhost here:
http://ns1.murga-projects.com/puppy/vie ... 88d#781938
I can't help much with this because I've never tested dual monitor or multyseat system.

Toni

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#12 Post by neerajkolte »

Hi Toni,
Thanks for the links.
I had already looked at multiseat few months ago when I just started using Linux. It all went over my head that time.

I will give it a go again to see if I can do it.

I currently use my setup as "Extended Desktop" (one big desktop spanning my both screens.)
The screens are not identical. One is 22" and another is 17".
So I have set resolutions 1920x1080 on 22" and 1280x1024 on 17".
When I set wallpaper, it looks ok on one and off on other.
I fused 2 different shaped wallpapers together and that worked, but it's too much work every time.

I heard xfce can set 2 wallpapers on 2 screens.
That's why I was looking for a way to do it in rox.

Thanks.

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#13 Post by Ted Dog »

I used a different desktop manager for a second screen jwm etc.. then use its wallpaper setup.

But generally not able if cloned or extended desktop it is treated as a separate xwindows session. Also I had to use the Manufacturer drivers to set it up, saw you did that and did not provide a link on the post for it in the fd7b2 thread. :? I was hoping you did... :wink: have a little script file somewhere that setup my two monitors.

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#14 Post by neerajkolte »

Hi ted,
I just use a script

Code: Select all

xrandr --output VGA1 --mode 1280x1024 --right-of HDMI1
to set my extended desktop. I found it to be easy and faster to use than zarfy in control panel.

But I didn't understand what you were talking about.
If you were talking about this script

Code: Select all

#!/bin/sh
# First you have to find eventXXX and eventYYY by running "evtest" on terminal,
# and find which event devices correspond to your spare usb mouse/keyboard. If you are inclined you can even write udev rules to give a fixed name for them, so you don't always have to find thembut that would be beyond the scope of this discussion.
# Replace them in following code in line 6 also remove the # from line 6,7,8,9 and you are good to go.

#/usr/share/sandbox/Xephyr -keybd evdev,,device=/dev/input/eventXXX,xkbrules=evdev,xkbmodel=evdev -mouse evdev,,device=/dev/input/eventYYY -screen 1024x768 -retro :1	
#DISPLAY=:1 openbox &
#DISPLAY=:1 razor-panel &
#DISPLAY=:1 rox -p /root/.config/rox.sourceforge.net/ROX-Filer/PuppyPin 

/usr/share/sandbox/Xephyr -keybd evdev,,device=/dev/input/event3,xkbrules=evdev,xkbmodel=evdev -mouse evdev,,device=/dev/input/event4 -screen 1280x1024 -retro :1 &
DISPLAY=:1 openbox &
DISPLAY=:1 razor-panel &
DISPLAY=:1 rox -p /root/.config/rox.sourceforge.net/ROX-Filer/PuppyPin 
It was given by Jamesbond to me on FD631 thread (on page no 17 I think).
It uses Xephyr sandbox to put another session on my other monitor.
It needs to be modified to work on FD700.

Please forgive me I got you wrong and you meant completely different.
Thanks.

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#15 Post by neerajkolte »

Hi ted,
The Xephyr code I posted uses extra set of mouse and keyboard. See Jamesbond's post on FD631 thread.
He also gave code to do that without extra set of input devices just few posts earlier HERE.

This is not true multiseat and you could see window decorations and all but it works.

Thanks.

- Neeraj
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

Post Reply