You are not logged in.

#1 2024-02-25 01:38:52

dab9966
Member
Registered: 2023-12-05
Posts: 44

[Solved] Unable to set wallpaper through Terminal using gsettings

My goal is to be able to change wallpaper through bash command script, does not have to be gsettings but that's the only one I found. So I use this

~ gsettings set org.gnome.desktop.background picture-uri 'file:///home/Pictures/wall.jpg' # no errors in the console and no background has changed

~ gsettings get org.gnome.desktop.background picture-uri # value appears to have changed though as per below output
'file:///home/Pictures/wall.jpg'

~ gsettings set org.gnome.desktop.background picture-options 'centered' # this works by resizing current wallpaper

I noticed someone had similar issue in the past https://www.reddit.com/r/gnome/comments … tings_set/ but no solution was provided.

I need help getting this working, not sure if anyone experienced this before?

Linux arch 6.7.5-arch1-1
GNOME Shell 45.4
gnome-control-center 45.3

Last edited by dab9966 (2024-02-25 01:52:52)

Offline

#2 2024-02-25 01:52:15

dab9966
Member
Registered: 2023-12-05
Posts: 44

Re: [Solved] Unable to set wallpaper through Terminal using gsettings

Finally got it! Found solution here: https://askubuntu.com/a/1427663

It appears that for dark mode you need a different command, bizzare but it makes sense. The correct command is

gsettings set org.gnome.desktop.background picture-uri-dark 'file:///home/Pictures/wall.jpg'`

Offline

Board footer

Powered by FluxBB