Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't set wallpaper on xfce #45

Open
apprehensions opened this issue Sep 14, 2020 · 13 comments
Open

doesn't set wallpaper on xfce #45

apprehensions opened this issue Sep 14, 2020 · 13 comments

Comments

@apprehensions
Copy link

i'm currently running arcolinux xfce4 and i have installed pacwall from yay
when trying to run pacwall nothing literally happens; i run it on gnome still nothing but a second before exiting i see it
what i think the problem is that the wallpaper providers for xfce/gnome deny it since viewing the gnome logs give
URI './pacwall.png' is invalid
and
Failed to load background 'file:///home/wael/pacwall.png': Error opening file /home/wael/pacwall.png: No such file or directory
any help?

@Kharacternyk
Copy link
Owner

Could you try this hook?

hook: "S=$(xdpyinfo | grep dimensions | sed -r \"s/^[^0-9]*([0-9]+x[0-9]+).*$/\1/\");"
      "convert '$W' -gravity center -background '#073642' -extent '$S' '$W';"
      "gsettings set org.gnome.desktop.background picture-uri $(realpath '$W');"

@Kharacternyk Kharacternyk added the bug Something isn't working label Sep 14, 2020
@apprehensions
Copy link
Author

apprehensions commented Sep 14, 2020

sorry but i have no idea how to use this
edit: i think you put that in the pacwall.conf but still nothing

@Kharacternyk
Copy link
Owner

So you have put this into pacwall.conf and it doesn't work. Do you have anything else in pacwall.conf? What do GNOME logs tell?

@apprehensions
Copy link
Author

i was running xfce at that time, nothing
running gnome and it works! problem is i use xfce as my main de so this kinda sucks :(
also is it normal that the wallpaper turns white then updates? (in gnome)

@Kharacternyk
Copy link
Owner

problem is i use xfce as my main de so this kinda sucks :(

Have you run these commands from the installation section of the README?

sudo pacman -S --needed hsetroot
mkdir -p ~/.config/pacwall
cp /usr/share/pacwall/examples/hook/hsetroot ~/.config/pacwall/pacwall.conf

XFCE and GNOME require different approaches to set a wallpaper.

also is it normal that the wallpaper turns white then updates? (in gnome)

What if you shorten the hook to

hook: "S=$(xdpyinfo | grep dimensions | sed -r \"s/^[^0-9]*([0-9]+x[0-9]+).*$/\1/\");"
      "convert '$W' -gravity center -background '#073642' -extent '$S' '$W';"

? Does the white flickering occur?

@apprehensions
Copy link
Author

apprehensions commented Sep 14, 2020

well it became black but it doesn't bother me as much, another thing
it isn't centered, and the size and color scheme doesn't fit and it doesn't change unless i return to v1.0
edit: trying to edit the size and color scheme gives me syntax errors which i'm really not sure if its supposed to say that

@apprehensions
Copy link
Author

pacwall on xfce with the shortened hook still is broken

@Kharacternyk
Copy link
Owner

pacwall on xfce with the shortened hook still is broken

The shortened hook is for GNOME. For XFCE you should use the hsetroot one.

trying to edit the size and color scheme gives me syntax errors which i'm really not sure if its supposed to say that

Please read the README for instructions on changing the appearance. The new version isn't compatible with v1 in many ways.

@apprehensions
Copy link
Author

apprehensions commented Sep 14, 2020

The shortened hook is for GNOME. For XFCE you should use the hsetroot one.

setting config to https://raw.githubusercontent.com/Kharacternyk/pacwall/master/examples/hook/hsetroot
still gives nothing..

@Kharacternyk
Copy link
Owner

That's very weird. It worked on v1.*, right? Is $? zero after pacwall invocation?

@omentic
Copy link

omentic commented Sep 15, 2020

I too see this problem on EndeavourOS XFCE.

@Kharacternyk
Copy link
Owner

It seems that setting wallpaper on XFCE via CLI is rather complicated:

https://askubuntu.com/questions/380550/xubuntu-how-to-set-the-wallpaper-using-the-command-line

@Kharacternyk Kharacternyk added wallpaper-hook and removed bug Something isn't working labels Sep 16, 2020
@herrenP
Copy link

herrenP commented May 6, 2021

Try this in ~/.config/pacwall/pacwall.conf

hook: "monitorInfo=$(xrandr | grep ' connected ');"
      "monitorName=$(echo $monitorInfo | awk \"{print $1}\");"
      "monitorResolution=$(echo $monitorInfo | awk \"{print $3}\" | cut -d '+' -f1);"
      "convert '$W' -gravity center -background '#073642' -extent '$monitorResolution' '$W';"
      "wallpaper=$(dirname '$W')/bg.png;"
      "cp -f '$W' '$wallpaper';"
      "xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor'$monitorName'/workspace0/last-image -s '$wallpaper';"

Then run pacwall.

The current script will set the wallpaper for all workspaces. Not sure how it will behave on a multi-monitor setup. I have only one monitor.

Suggestions are welcome of course.

@Kharacternyk Kharacternyk changed the title doesn't set wallpaper doesn't set wallpaper on xfce Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants