adi1090x / dynamic-wallpaper

A simple bash script to set wallpapers according to current time, using cron job scheduler.
GNU General Public License v3.0
1.91k stars 114 forks source link

Not working for xfce4 (galliumOS) #25

Closed rbreaves closed 3 years ago

rbreaves commented 4 years ago
  1. Wallpaper not changing : echo $DESKTOP_SESSION. /usr/bin/startxfce4

  2. Not working on XFCE xfconf-query -c xfce4-desktop -m

    Start monitoring channel "xfce4-desktop":
    set: /backdrop/screen0/monitor0/workspace0/last-image

I updated ./test.sh to have screen and monitor set to 0. Re-ran the test and it still failed.

Before updating it I believe this is how it was resolving

# screen
xrandr --listactivemonitors | awk -F ' ' 'END {print $1}' | tr -d \:
0
# monitor
xrandr --listactivemonitors | awk -F ' ' 'END {print $2}' | tr -d \*+
eDP-1
adi1090x commented 4 years ago

You need to add /usr/bin/startxfce4 in that wallpaper setting line for xfce.

rbreaves commented 4 years ago

On xfce I think you need to run this command to get a full list of all possible monitors,

xfconf-query -c xfce4-desktop --list

This command for active monitors

xrandr | grep connected

And just note that eDP-1 tends to be the internal lcd screen of most laptops, so eDP-1 only equals 0, not the eDP-1 entries that may appear in the xfconf-query.