From d1ea31ce301088cb347631786ee737e80c63b24b Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Tue, 10 Feb 2026 11:10:15 +0100 Subject: [PATCH] Update .config/sway/config Update .config/sway/scripts/wallpaper_rotate.py --- private_dot_config/sway/config | 3 ++- private_dot_config/sway/scripts/wallpaper_rotate.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/private_dot_config/sway/config b/private_dot_config/sway/config index e3898b5..5bc39ad 100644 --- a/private_dot_config/sway/config +++ b/private_dot_config/sway/config @@ -43,6 +43,7 @@ bindsym XF86AudioPrev exec playerctl previous # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) #output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill #output * bg $wallpaper fill +exec matugen image ~/Pictures/Wallpapers/door.jpg --mode dark # @@ -265,7 +266,7 @@ bar { #} } -exec python3 ~/.config/sway/scripts/wallpaper_rotate.py +#exec python3 ~/.config/sway/scripts/wallpaper_rotate.py exec mako exec steam exec ticktick diff --git a/private_dot_config/sway/scripts/wallpaper_rotate.py b/private_dot_config/sway/scripts/wallpaper_rotate.py index 45e32fb..250e81b 100644 --- a/private_dot_config/sway/scripts/wallpaper_rotate.py +++ b/private_dot_config/sway/scripts/wallpaper_rotate.py @@ -17,4 +17,8 @@ while True: #matugen image $wallpaper --mode "dark" wallpaper_rotate_command = subprocess.call(["matugen","image",random_wallpaper_location,"--mode","dark"]) + if len(unused_wallpapers) == 0: + unused_wallpapers = used_wallpapers.copy() + used_wallpapers = [] + time.sleep(300) \ No newline at end of file