Add option to override wallpaper to a specific image always
This commit is contained in:
parent
95d2c26854
commit
2e81ad001f
|
@ -34,6 +34,7 @@ class Config(BaseConfig):
|
||||||
# Images
|
# Images
|
||||||
desktop_bg = "/home/kevin/Pictures/wallpapers/desktop.png"
|
desktop_bg = "/home/kevin/Pictures/wallpapers/desktop.png"
|
||||||
desktop_bg_folder = "/home/kevin/Pictures/wallpapers/desktop_rotation"
|
desktop_bg_folder = "/home/kevin/Pictures/wallpapers/desktop_rotation"
|
||||||
|
# desktop_bg_override = "/home/kevin/Pictures/safe_wallpaper.jpg"
|
||||||
applauncher_image = "/home/kevin/.config/qtile/kuro/resources/arch.png"
|
applauncher_image = "/home/kevin/.config/qtile/kuro/resources/arch.png"
|
||||||
custom_layout_icon_paths = ['/home/kevin/.config/qtile/kuro/resources/layout_icons/']
|
custom_layout_icon_paths = ['/home/kevin/.config/qtile/kuro/resources/layout_icons/']
|
||||||
glava_color_file_path = "/home/kevin/.config/glava/kurobars_color.glsl"
|
glava_color_file_path = "/home/kevin/.config/glava/kurobars_color.glsl"
|
||||||
|
|
|
@ -773,7 +773,10 @@ class Kuro(BaseTheme):
|
||||||
logger.warning("Could not load wallpapers from directory: {}".format(e))
|
logger.warning("Could not load wallpapers from directory: {}".format(e))
|
||||||
|
|
||||||
if wallpapers:
|
if wallpapers:
|
||||||
qtile.theme_instance.current_wallpaper = os.path.join(wallpaper_dir, random.choice(wallpapers))
|
if Config.get("desktop_bg_override", False):
|
||||||
|
qtile.theme_instance.current_wallpaper = Config.get("desktop_bg_override", "")
|
||||||
|
else:
|
||||||
|
qtile.theme_instance.current_wallpaper = os.path.join(wallpaper_dir, random.choice(wallpapers))
|
||||||
Kuro.set_wallpaper(qtile, qtile.theme_instance.current_wallpaper)
|
Kuro.set_wallpaper(qtile, qtile.theme_instance.current_wallpaper)
|
||||||
else:
|
else:
|
||||||
utils.execute_once("nitrogen --restore")
|
utils.execute_once("nitrogen --restore")
|
||||||
|
|
Loading…
Reference in a new issue