Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-01-30 12:02:52

hisacro
Member
Registered: 2019-12-07
Posts: 6

Command for changing wallpaper horizontal gradient colors.

[Solved]

 xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/rgba1 -t double -t double -t double -t double -s 0.1 -s 0.3 -s 0 -s 0.5

Check out post #4 for changing more options via commands..


I have looked in these documentation but couldn't find any commands to change the color of horizontal gradient.

Xfdesktop
Xfdesktop_Prefrences


this
these two colors

Last edited by hisacro (2020-02-01 07:10:33)

Offline

#2 2020-01-31 00:46:35

kreemoweet
Member
Registered: 2019-12-01
Posts: 7

Re: Command for changing wallpaper horizontal gradient colors.

Click on the color rectangles. This invokes a color selection dialog.

Offline

#3 2020-01-31 14:36:18

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Command for changing wallpaper horizontal gradient colors.

kreemoweet wrote:

Click on the color rectangles. This invokes a color selection dialog.

Yeah, but I think what OP's looking for is a command to use in a script or directly in the terminal. Unluckily I don't have an answer either... sad

Offline

#4 2020-01-31 16:09:21

hisacro
Member
Registered: 2019-12-07
Posts: 6

Re: Command for changing wallpaper horizontal gradient colors.

Update 1: 

xfconf-query -c xfce4-desktop -lv

 test

color-style [0-4] : Solid, HGradient, VGradient, Transparent

image-style [0 to 5] : None, centered, tiled, Stretced, Zoomed, spanning

last-image : path to background

rgba1, rgba2 : gradients

To change a property,

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/color-style -s 1

this changes solid color to HGradient.

well this should work with rgba1, rgba2 ???
Not yet...

xfdesktop-github

RGBA1, RGBA2 are some sort of array (couldn't figure yet),

gdkrgba string syntax is rgba(r, g, b, a) all in floating range of 0 to 1

GDK-RGBA

right now I tried few (*stupid) things
output,

"A value type must be specified to change an array into a single value."

--TL;DR --
I should pass gdkrgba array to property /backdrop/screen0/monitorLVDS1/workspace0/rgba1

which I guess a hassle in bash to pass array so,  changing gdkrbga string to arrary then passing should work. (only when I figure the arrary syntax)

Offline

#5 2020-01-31 16:19:07

Misko_2083
Member
Registered: 2015-10-13
Posts: 191
Website

Re: Command for changing wallpaper horizontal gradient colors.

Something like this?
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/rgba1 -t int -t int -t int -t int -s 0 -s 0 -s 0 -s 1


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

#6 2020-01-31 20:21:46

hisacro
Member
Registered: 2019-12-07
Posts: 6

Re: Command for changing wallpaper horizontal gradient colors.

@MIsko_2083 big_smile !!!
Got it working with

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/rgba1 -t double -t double -t double -t double -s 0.1 -s 0.3 -s 0 -s 0.5

(r,g,b,a) 'a' for transparency.

Hearty Thanks!

Offline

Board footer

Powered by FluxBB