Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-11-11 19:59:16

otyugh
Member
Registered: 2015-01-11
Posts: 34

Is it possible to know xfdesktop's "actual" wallpaper ?

Hey,
I'm working on a litle scrip that displays xfdesktop's wallpaper (in black&white) very early using feh - that get's overwritten by xfdesktop when it launches (from 1 to 10 seconds afterward). Makes the startup process more "beautiful".

My actual problem is that I don't know how to know what wallpaper is used by xfdesktop. - I do uses xfconf-query, but depending on the computer, they uses the LVDS1 entry, or VGA1 ; so I don't know where to look and how to know where to look. Any pointer ?

Offline

#2 2019-11-11 20:45:14

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

Re: Is it possible to know xfdesktop's "actual" wallpaper ?

Not sure I understand, but there are only 3 wallpapers on my machine:

~/usr/share/backgrounds/xfce/

So a "brute force" (e.g., moving or renaming one at a time) approach might not take long.


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

Offline

#3 2019-11-11 21:35:32

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Is it possible to know xfdesktop's "actual" wallpaper ?

I don't know if this would be helpful, but running xfconf-query -c xfce4-desktop -lv for me produces this:

scott@scott-HP ~ $ xfconf-query -c xfce4-desktop -lv
/backdrop/screen0/monitor0/brightness                        0
/backdrop/screen0/monitor0/image-path                        /usr/share/xfce4/backdrops/linuxmint.png
/backdrop/screen0/monitor0/last-image                        /usr/share/xfce4/backdrops/linuxmint.png
/backdrop/screen0/monitor0/last-single-image                 /usr/share/xfce4/backdrops/linuxmint.png
/backdrop/screen0/monitor0/workspace0/backdrop-cycle-enable  false
/backdrop/screen0/monitor0/workspace0/color-style            0
/backdrop/screen0/monitor0/workspace0/image-style            5
/backdrop/screen0/monitor0/workspace0/last-image             /home/scott/Pictures/audio_mix-wallpaper-1366x768.jpg
/backdrop/screen0/monitor0/workspace1/color-style            0
/backdrop/screen0/monitor0/workspace1/image-style            5
/backdrop/screen0/monitor0/workspace1/last-image             /home/scott/Pictures/16391_3d_space_scene.jpg
/backdrop/screen0/monitor0/workspace2/color-style            0
/backdrop/screen0/monitor0/workspace2/image-style            5
/backdrop/screen0/monitor0/workspace2/last-image             /home/scott/Pictures/312037main_cena_full.jpg
/backdrop/screen0/monitor0/workspace3/color-style            0
/backdrop/screen0/monitor0/workspace3/image-style            5
/backdrop/screen0/monitor0/workspace3/last-image             /home/scott/Pictures/music_26-wallpaper-1366x768.jpg
/backdrop/screen0/monitor0/workspace4/color-style            0
/backdrop/screen0/monitor0/workspace4/image-style            5
/backdrop/screen0/monitor0/workspace4/last-image             /home/scott/Pictures/earth-from-space.jpg
/backdrop/screen0/monitor0/workspace5/color-style            0
/backdrop/screen0/monitor0/workspace5/image-style            5
/backdrop/screen0/monitor0/workspace5/last-image             /home/scott/Pictures/feb4-fixed.jpg
/backdrop/screen0/monitor0/workspace6/color-style            0
/backdrop/screen0/monitor0/workspace6/image-style            5
/backdrop/screen0/monitor0/workspace6/last-image             /usr/share/xfce4/backdrops/linuxmint.png
/backdrop/screen0/monitor0/workspace7/color-style            0
/backdrop/screen0/monitor0/workspace7/image-style            5
/backdrop/screen0/monitor0/workspace7/last-image             /usr/share/xfce4/backdrops/linuxmint.png
/backdrop/single-workspace-mode                              false
/desktop-icons/file-icons/show-filesystem                    false
/desktop-icons/file-icons/show-home                          true
/desktop-icons/file-icons/show-removable                     false
/desktop-icons/file-icons/show-trash                         true
/desktop-icons/font-size                                     9.000000
/desktop-icons/icon-size                                     48
/desktop-icons/show-thumbnails                               true
/desktop-icons/show-tooltips                                 true
/desktop-icons/tooltip-size                                  48.000000
/desktop-icons/use-custom-font-size                          true
/desktop-menu/show                                           false
/last/window-height                                          586
/last/window-width                                           798
scott@scott-HP ~ $ 

For me, my "main" background is shown in /backdrop/screen0/monitor0/workspace0/last-image

I have no idea if that field is populated when not using multiple workspaces.

Offline

#4 2019-11-11 22:58:47

otyugh
Member
Registered: 2015-01-11
Posts: 34

Re: Is it possible to know xfdesktop's "actual" wallpaper ?

@Jerry3904 : I'm not sur I get your point. The wallpaper path can be anything.

@Meren : the approach I'll take, I guess.

It'd be testing in order the existence of
1) xfce4-desktop/backdrop/screen0/monitorLVDS1/workspace0/last-image
2) xfce4-desktop/backdrop/screen0/monitorVGA-1/workspace0/last-image
3) xfce4-desktop/backdrop/screen0/monitor0/workspace0/last-image

and loading the first one available.

I'll try that. (sloppy hack is my game lately, I'm so sorry é_è)

Last edited by otyugh (2019-11-11 23:18:57)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 535.49 KiB (Peak: 536.34 KiB) ]