Compare commits
No commits in common. "4579b4d4aa631be95c9a28658014c5844da032f1" and "018a651d28471e4f2207743f6178f83c0b3ed7dc" have entirely different histories.
4579b4d4aa
...
018a651d28
3 changed files with 6 additions and 4 deletions
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "wallman"
|
name = "wallman"
|
||||||
version = "1.4.3.4"
|
version = "1.4.2.4"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Emma Nora Theuer", email = "wallman@entheuer.de"},
|
{name = "Emma Nora Theuer", email = "wallman@entheuer.de"},
|
||||||
]
|
]
|
||||||
|
|
|
@ -6,7 +6,7 @@ def main():
|
||||||
logic = wallman_lib.WallpaperLogic()
|
logic = wallman_lib.WallpaperLogic()
|
||||||
validator.validate_config()
|
validator.validate_config()
|
||||||
logic.set_wallpaper_by_time()
|
logic.set_wallpaper_by_time()
|
||||||
logic.schedule_wallpapers()
|
logic.run_wallpapers()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -232,7 +232,8 @@ class WallpaperLogic(_ConfigLib):
|
||||||
# HACK on this to see if this logic can be simplified. It's very ugly to check it that way.
|
# 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.
|
# 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()):
|
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()):
|
||||||
exitcode = system(f"feh --bg-tile --no-fehbg --quiet {self.wallpaper_list[time_range]}")
|
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]}")
|
||||||
has_wallpaper_been_set = self._check_system_exitcode(exitcode)
|
has_wallpaper_been_set = self._check_system_exitcode(exitcode)
|
||||||
# TODO: Add this check to _notify_user.
|
# TODO: Add this check to _notify_user.
|
||||||
if self.config_notify:
|
if self.config_notify:
|
||||||
|
@ -241,7 +242,8 @@ class WallpaperLogic(_ConfigLib):
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
exitcode = system(f"feh --bg-tile --no-fehbg {self.wallpaper_list[-1]}")
|
system(f"feh --bg-scale --no-fehbg {self.wallpaper_list[-1]}")
|
||||||
|
exitcode = system(f"feh --bg-scale --no-fehbg {self.wallpaper_list[-1]}")
|
||||||
has_wallpaper_been_set = self._check_system_exitcode(exitcode)
|
has_wallpaper_been_set = self._check_system_exitcode(exitcode)
|
||||||
if self.config_notify:
|
if self.config_notify:
|
||||||
self._notify_user()
|
self._notify_user()
|
||||||
|
|
Loading…
Reference in a new issue