Using nitrogen with sway

When I try to change the desktop image with nitrogen, nothing happens…the desktop stays the same

Nitrogen does not work with sway.

If you have the standard sway installation from EOS, you need to edit the file ~/.config/sway/config.d/theme.

There is a line for the wallpaper. Change that to the destination of your desired wallpaper. It looks like this:

exec swaybg -i ~/.config/sway/sway.png

After that you need to reload the desktop like this:

$mod+Shift+c

Feh should also work with wayland.

The problem is swaybg, it takes control and doesn’t give it back!

from a terminal, kill it, then run your nitrogen command, if this works I am right :smiley:

The only thing I found that worked was to add killall swaybg to autostart.sh.