Adding support for gnome dark mode wallpapers

This commit is contained in:
LordVicky 2022-06-28 12:42:32 +04:00
parent 236aa48e74
commit ad5879b2e6

View File

@ -101,6 +101,9 @@ def set_desktop_wallpaper(desktop, img):
"picture-uri", "file://" + urllib.parse.quote(img)]) "picture-uri", "file://" + urllib.parse.quote(img)])
elif "gnome" in desktop or "unity" in desktop: elif "gnome" in desktop or "unity" in desktop:
util.disown(["gsettings", "set",
"org.gnome.desktop.background",
"picture-uri-dark", "file://" + urllib.parse.quote(img)])
util.disown(["gsettings", "set", util.disown(["gsettings", "set",
"org.gnome.desktop.background", "org.gnome.desktop.background",
"picture-uri", "file://" + urllib.parse.quote(img)]) "picture-uri", "file://" + urllib.parse.quote(img)])