Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 07 Jul 2015, 13:57
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Set different Wallpapers on each Desktop. FIXED Again.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5047
Location: Arizona, U.S.A.

PostPosted: Tue 17 Dec 2013, 00:30    Post subject:  Set different Wallpapers on each Desktop. FIXED Again.  

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, 13:34; edited 15 times in total
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5047
Location: Arizona, U.S.A.

PostPosted: Thu 19 Dec 2013, 21:23    Post subject:  

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.
.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Fri 02 Jan 2015, 09:58    Post subject:  

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.
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3217
Location: Bulgaria

PostPosted: Fri 02 Jan 2015, 10:23    Post subject:  

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/viewtopic.php?p=773219#773219
http://smokey01.com/saintless/source-code/WallPapers.zip

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Fri 02 Jan 2015, 11:02    Post subject:  

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.
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3217
Location: Bulgaria

PostPosted: Fri 02 Jan 2015, 12:01    Post subject:  

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:
   <!-- 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
WallPapers.zip
Description 
zip

 Download 
Filename  WallPapers.zip 
Filesize  106.44 KB 
Downloaded  69 Time(s) 

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
sunburnt


Joined: 08 Jun 2005
Posts: 5047
Location: Arizona, U.S.A.

PostPosted: Fri 02 Jan 2015, 12:22    Post subject:  

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.
.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Fri 02 Jan 2015, 12:26    Post subject:  

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.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Fri 02 Jan 2015, 12:31    Post subject:  

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.
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5047
Location: Arizona, U.S.A.

PostPosted: Fri 02 Jan 2015, 12:40    Post subject:  

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.?
.
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3217
Location: Bulgaria

PostPosted: Fri 02 Jan 2015, 14:18    Post subject:  

Nice to chat with you again, Terry Smile
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/viewtopic.php?p=781938&sid=5df811f32bd4a4954b138857f568e88d#781938
I can't help much with this because I've never tested dual monitor or multyseat system.

Toni
Back to top
View user's profile Send private message MSN Messenger 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Fri 02 Jan 2015, 23:46    Post subject:  

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.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 3313
Location: Heart of Texas

PostPosted: Sat 03 Jan 2015, 00:40    Post subject:  

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. Confused I was hoping you did... Wink have a little script file somewhere that setup my two monitors.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Sat 03 Jan 2015, 01:19    Post subject:  

Hi ted,
I just use a script
Code:
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:
#!/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.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Sat 03 Jan 2015, 01:43    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0896s ][ Queries: 13 (0.0051s) ][ GZIP on ]