From fc1a8c95b8e5267541d6d2d554558e9e0e6e3a37 Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Tue, 10 Dec 2024 18:56:04 +0100 Subject: [PATCH] Improved multi-monitor handling. Improved performance by removing redundant function call --- src/wallman_lib.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wallman_lib.py b/src/wallman_lib.py index 284d788..a811079 100644 --- a/src/wallman_lib.py +++ b/src/wallman_lib.py @@ -232,8 +232,7 @@ class WallpaperLogic(_ConfigLib): # HACK on this to see if this logic can be simplified. It's very ugly to check it that way. # Check if the current time is between a given and the following changing time and if so, set that wallpaper. If not, keep trying. if self._time_in_range(time(int(clean_time[0]), int(clean_time[1]), int(clean_time[2])), time(int(clean_time_two[0]), int(clean_time_two[1]), int(clean_time_two[2])), datetime.now().time()): - system(f"feh --bg-scale --no-fehbg --quiet {self.wallpaper_list[time_range]}") - exitcode = system(f"feh --bg-scale --no-fehbg --quiet {self.wallpaper_list[time_range]}") + exitcode = system(f"feh --bg-tile --no-fehbg --quiet {self.wallpaper_list[time_range]}") has_wallpaper_been_set = self._check_system_exitcode(exitcode) # TODO: Add this check to _notify_user. if self.config_notify: @@ -242,8 +241,7 @@ class WallpaperLogic(_ConfigLib): else: continue - system(f"feh --bg-scale --no-fehbg {self.wallpaper_list[-1]}") - exitcode = system(f"feh --bg-scale --no-fehbg {self.wallpaper_list[-1]}") + exitcode = system(f"feh --bg-tile --no-fehbg {self.wallpaper_list[-1]}") has_wallpaper_been_set = self._check_system_exitcode(exitcode) if self.config_notify: self._notify_user()