Sway: changing wallpaper?

Is there some trick to changing the wallpaper in Sway?

I added an exec swaybg -i ~/Pictures/something.png and the PNG file is 1920x1200 but I still get the default image after logging out and back in.

2 Likes

Did you make sure to remove any other existing lines that set the background in ~/.config/sway/config? I don’t use swaybg to set mine but:

output * bg /home/chartreuse/.wallpaper fill

Where the file .wallpaper is a symlink to my desired wallpaper so I can change it without changing the sway config

2 Likes

Oh, the symlink is smart. I’ll try your setup. Thanks

Edit: that did the trick

Hi! Beginner here with the linux command line, trying to repeat your setup as well. I have an image file named x.wallpaper in my home dir. Where do I put:

output * bg /home/chartreuse/.wallpaper fill

Or is this a command typed on the prompt?
where do I put the symbolic link that points to the .wallpaper file?

Thanks for the help!

That line is in the sway config file.

The file path in the line is a symlink to the desired wallpaper.

1 Like