Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-10-29 13:49:47

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

set separate wallpapers for distribution

We are preparing the beta for MX-17, and are once again interested in making the default config be for separate wallpapers for each of the 2 desktops.

We looked at this option for the previous MX version, but found that for some reason the system renamed the monitors (or desktops?) rather than display the second wallpaper. I see the monitors and desktops are defined with their wallpapers in xfce4-desktop.xml, but don't see an obvious item there that we missed.

Is there a way for us to do this?

TIA

Last edited by Jerry3904 (2017-10-29 16:20:52)


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#2 2017-10-29 22:55:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: set separate wallpapers for distribution

Jerry,
That would be difficult to do via a template xfce4-desktop.xml file because you would never know the monitor name. It's auto-created depending on the type of monitor attached, I believe.

You might be able to do it via an autostart script in the user profile. For example, this:

MONS=$(xfconf-query -c xfce4-desktop -lv | awk -F '/' '{print $4}' | uniq | grep monitor)

...will get you the list of the monitors that have been identified. You can then do something like:

#allow for wallpaper per workspace
xfconf-query -c xfce4-desktop -p /backdrop/single-workspace-mode -s false

#set the first and second workspace images to the ones specified for all identified monitors
for m in $MONS
do
   xfconf-query -c xfce4-desktop -p /backdrop/screen0/$m/workspace0/last-image --create -t String -s /path/to/first/image
   xfconf-query -c xfce4-desktop -p /backdrop/screen0/$m/workspace1/last-image --create -t String -s /path/to/second/image
done

This will set the first and second workspaces to the one's specified for all identified monitors.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2017-10-30 10:14:08

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: set separate wallpapers for distribution

Thanks a lot--we'll take a look at that and see if we can get it working for the beta so we can get some good testing.


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

Board footer

Powered by FluxBB