Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-09-11 13:05:53

digdoug
Member
Registered: 2017-09-11
Posts: 1

Xfconf-query missing saturation property in xfce4-desktop channel

Good Morning.

I am working on updating a wallpaper change script for XFCE4. This is part of our migration from RHEL 6 to CentOS 7. Under RHEL 6 (XFCE 4.8), we had only a generic monitor path component:

demo@ron.XXXX.org.90: xfconf-query -c xfce4-desktop -l |grep screen0
/backdrop/screen0/monitor0/brightness
/backdrop/screen0/monitor0/color1
/backdrop/screen0/monitor0/color-style
/backdrop/screen0/monitor0/image-path
/backdrop/screen0/monitor0/image-show
/backdrop/screen0/monitor0/last-image
/backdrop/screen0/monitor0/last-image-list
/backdrop/screen0/monitor0/last-single-image
/backdrop/screen0/monitor0/saturation

With CentOS 7 (XFCE 4.12), there are multiple monitor elements for each screen:

demo@cittern.XXXX.org.69: xfconf-query -c xfce4-desktop -l | grep screen0 |grep workspace0
/backdrop/screen0/monitor0/workspace0/color1
/backdrop/screen0/monitor0/workspace0/color-style
/backdrop/screen0/monitor0/workspace0/image-style
/backdrop/screen0/monitor0/workspace0/last-image
/backdrop/screen0/monitorDP-1/workspace0/color1
/backdrop/screen0/monitorDP-1/workspace0/color-style
/backdrop/screen0/monitorDP-1/workspace0/image-style
/backdrop/screen0/monitorDP-1/workspace0/last-image
/backdrop/screen0/monitorDP-2/workspace0/color-style
/backdrop/screen0/monitorDP-2/workspace0/image-style
/backdrop/screen0/monitorDP-2/workspace0/last-image
/backdrop/screen0/monitorDP-4/workspace0/color1
/backdrop/screen0/monitorDP-4/workspace0/color-style
/backdrop/screen0/monitorDP-4/workspace0/image-style
/backdrop/screen0/monitorDP-4/workspace0/last-image
/backdrop/screen0/monitorDP-5/workspace0/color1
/backdrop/screen0/monitorDP-5/workspace0/color-style
/backdrop/screen0/monitorDP-5/workspace0/image-style
/backdrop/screen0/monitorDP-5/workspace0/last-image
/backdrop/screen0/monitorDP-7/workspace0/color1
/backdrop/screen0/monitorDP-7/workspace0/color-style
/backdrop/screen0/monitorDP-7/workspace0/image-style
/backdrop/screen0/monitorDP-7/workspace0/last-image
/backdrop/screen0/monitorDVI-D-0/workspace0/color1
/backdrop/screen0/monitorDVI-D-0/workspace0/color-style
/backdrop/screen0/monitorDVI-D-0/workspace0/image-style
/backdrop/screen0/monitorDVI-D-0/workspace0/last-image
/backdrop/screen0/monitorDVI-I-0/workspace0/color1
/backdrop/screen0/monitorDVI-I-0/workspace0/color-style
/backdrop/screen0/monitorDVI-I-0/workspace0/image-style
/backdrop/screen0/monitorDVI-I-0/workspace0/last-image
/backdrop/screen0/monitorDVI-I-1/workspace0/color1
/backdrop/screen0/monitorDVI-I-1/workspace0/color-style
/backdrop/screen0/monitorDVI-I-1/workspace0/image-style
/backdrop/screen0/monitorDVI-I-1/workspace0/last-image
/backdrop/screen0/monitorDVI-I-3/workspace0/backdrop-cycle-enable
/backdrop/screen0/monitorDVI-I-3/workspace0/color1
/backdrop/screen0/monitorDVI-I-3/workspace0/color2
/backdrop/screen0/monitorDVI-I-3/workspace0/color-style
/backdrop/screen0/monitorDVI-I-3/workspace0/image-style
/backdrop/screen0/monitorDVI-I-3/workspace0/last-image
/backdrop/screen0/monitorHDMI1/workspace0/color1
/backdrop/screen0/monitorHDMI1/workspace0/color-style
/backdrop/screen0/monitorHDMI1/workspace0/image-style
/backdrop/screen0/monitorHDMI1/workspace0/last-image

On the particular workstation I am working on, I can poke an image at /backdrop/screen0/monitorDVI-I-3/workspace0/last-image:

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorDVI-I-3/workspace0/last-image -s /path/to/image.png

And this works. But this changes for each set of machines that have different hardware, etc... Plus, why no saturation, etc?

Which brings me to my questions.

Why is there no saturation (or brightness, etc.) for the monitorDVI-I-3 monitor?  (NOTE: /backdrop/screen0/monitor0/saturation still exists under XFCE 4.12 / Cent 7, but it doesn't do anything)

Is there a way to determine which screen/monitor combination is active? Otherwise i'm just jabbing away at all the last-image properties I can find:

@monitorNames=`xfconf-query -c xfce4-desktop -l |grep screen$screen |cut -f4 -d'/' |uniq`;

foreach my $monitor (@monitorNames) {
   chomp($monitor);
   my $xfce4ImageCmd = qq(xfconf-query -c xfce4-desktop -p /backdrop/screen$screen/$monitor/workspace0/last-image -s "$filename");
   system("$xfce4ImageCmd &");
}

Thanks for your help!

Last edited by digdoug (2017-09-11 13:06:30)

Offline

#2 2017-09-12 00:40:06

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

Re: Xfconf-query missing saturation property in xfce4-desktop channel

Hello and welcome.

Why is there no saturation (or brightness, etc.) for the monitorDVI-I-3 monitor?  (NOTE: /backdrop/screen0/monitor0/saturation still exists under XFCE 4.12 / Cent 7, but it doesn't do anything)

The brightness and saturation code was removed from xfdesktop.  Although those properties still exist on your system, they are no longer used.

Is there a way to determine which screen/monitor combination is active?

I've looked for this myself and was not able to find anything. Perhaps an enhancement request can be made requesting that this information be somehow made available, since the code is already determining it.


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

Board footer

Powered by FluxBB