Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

support xfce wallpaper fetching #905

Closed
eMPee584 opened this issue Feb 2, 2018 · 3 comments
Closed

support xfce wallpaper fetching #905

eMPee584 opened this issue Feb 2, 2018 · 3 comments

Comments

@eMPee584
Copy link

eMPee584 commented Feb 2, 2018

xfconf-query -c xfce4-desktop -p /backdrop/screen0/$(xrandr|awk '/\<connected/{print "monitor"$1}')/workspace0/last-image

馃ぃ

@dylanaraps
Copy link
Owner

That command is very unreliable. If a more reliable method is found I'll add it to master.

@ghost
Copy link

ghost commented May 11, 2018

Maybe something like this? Works for me on a single monitor setup.

#!/bin/bash

workspace_number="$(xprop -root _NET_CURRENT_DESKTOP)"
workspace_number="${workspace_number#*= }"

xfce4_image=($(awk -F 'value=' '/last-image/ {print $2}' \
               ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml))

xfce4_image="${xfce4_image["$workspace_number"]/\/>}"

echo $xfce4_image

@dylanaraps
Copy link
Owner

#1392

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants