mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-26 15:11:10 +01:00
Errors fixed.
This commit is contained in:
parent
2329b1859f
commit
d695168a44
@ -92,7 +92,7 @@ def get_export_type(export_type):
|
|||||||
"json": "colors.json",
|
"json": "colors.json",
|
||||||
"konsole": "colors-konsole.colorscheme",
|
"konsole": "colors-konsole.colorscheme",
|
||||||
"kitty": "colors-kitty.conf",
|
"kitty": "colors-kitty.conf",
|
||||||
"nqq": "colors-nqq.css",
|
"nqq": "colors-nqq.css",
|
||||||
"plain": "colors",
|
"plain": "colors",
|
||||||
"putty": "colors-putty.reg",
|
"putty": "colors-putty.reg",
|
||||||
"rofi": "colors-rofi.Xresources",
|
"rofi": "colors-rofi.Xresources",
|
||||||
|
@ -91,7 +91,7 @@ def set_wm_wallpaper(img):
|
|||||||
def set_desktop_wallpaper(desktop, img):
|
def set_desktop_wallpaper(desktop, img):
|
||||||
"""Set the wallpaper for the desktop environment."""
|
"""Set the wallpaper for the desktop environment."""
|
||||||
desktop = str(desktop).lower()
|
desktop = str(desktop).lower()
|
||||||
|
|
||||||
if "xfce" in desktop or "xubuntu" in desktop:
|
if "xfce" in desktop or "xubuntu" in desktop:
|
||||||
xfconf(img)
|
xfconf(img)
|
||||||
|
|
||||||
@ -125,8 +125,7 @@ def set_desktop_wallpaper(desktop, img):
|
|||||||
d.writeConfig("Image", "%s")};
|
d.writeConfig("Image", "%s")};
|
||||||
"""
|
"""
|
||||||
util.disown(["qdbus", "org.kde.plasmashell", "/PlasmaShell", "org.kde.PlasmaShell.evaluateScript",
|
util.disown(["qdbus", "org.kde.plasmashell", "/PlasmaShell", "org.kde.PlasmaShell.evaluateScript",
|
||||||
string % img])
|
string % img])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
set_wm_wallpaper(img)
|
set_wm_wallpaper(img)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user