Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-01-20 02:38:43

gnanini
Member
Registered: 2017-01-19
Posts: 16

How to toggle a wallpaper by terminal

I'm a archlinux user and some time ago, 2 months, I had a custom command on thunar to set a wallpaper,,,

I searched again this command, but I can't set my wallpapers anymore.

the command is :

$ xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s /usr/share/backgrounds/xfce/xfce-blue.jpg

the terminal returns:
Property "/backdrop/screen0/monitor0/image-path" does not exist on channel "xfce4-desktop". If a new property should be created, use the --create option.


what should I do?

Offline

#2 2017-01-20 02:49:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: How to toggle a wallpaper by terminal

You need to make sure that you get the correct xfconf path. It varies from version to version and from setup to setup. To get it, do this:

xfconf-query -c xfce4-desktop -m

...then change the wallpaper using the GUI method. When it changes, it will display the path in the terminal window. Use that path instead of "/backdrop/screen0/monitor0/image-path" in your example.


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-01-20 13:51:13

gnanini
Member
Registered: 2017-01-19
Posts: 16

Re: How to toggle a wallpaper by terminal

it is:
set: /backdrop/screen0/monitor0/workspace0/last-image

but
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/last-image -s "/usr/share/backgrounds/xfce/xfce-blue.jpg"

returns
Property "/backdrop/screen0/monitor0/last-image" does not exist on channel "xfce4-desktop". If a new property should be created, use the --create option

I believe I'm using the wrong options,,,

Offline

#4 2017-01-20 14:45:32

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: How to toggle a wallpaper by terminal

You're missing the workspace0 identifier in your command:

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image -s "/usr/share/backgrounds/xfce/xfce-blue.jpg"

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

#5 2017-01-20 18:06:47

gnanini
Member
Registered: 2017-01-19
Posts: 16

Re: How to toggle a wallpaper by terminal

it really works!!!

thanks

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 547.23 KiB (Peak: 548.08 KiB) ]