Compare commits
3 commits
7adaf591d0
...
6c72bdc31b
Author | SHA1 | Date | |
---|---|---|---|
6c72bdc31b | |||
ee2d17355e | |||
a69cd54763 |
3 changed files with 6 additions and 6 deletions
|
@ -63,7 +63,7 @@ sudo chmod 733 /var/log/wallman
|
|||
mkdir -p ~/.config/wallman
|
||||
cp sample_config.toml ~/.config/wallman/wallman.toml
|
||||
sudo mkdir -p /etc/wallman/
|
||||
cp -R icons/ /etc/wallman/
|
||||
sudo cp -R icons/ /etc/wallman/
|
||||
sudo cp src/wallman.py /usr/bin/wallman
|
||||
sudo cp src/wallman_lib.py /usr/bin/wallman_lib.py
|
||||
sudo cp src/wallman_systray.py /usr/bin/wallman_systray.py
|
||||
|
@ -108,7 +108,6 @@ The changing_times dictionary is used to specify the times of the day when your
|
|||
*** The other dictionaries
|
||||
The other dictionaries must always have the names of the wallpaper sets from used_sets. If you have one wallpaper set, you need one additional dictionary, if you have two you need two etc. The standard config uses nature and anime, these names can be whatever you please as long as they are the same as the ones specified in used_sets.
|
||||
The keys in the dictionary once again do not matter, the names of the keys in each dictionary must be strings and be absolute paths. They should not include spaces unless prefaced by a backslash.
|
||||
*/NOTE/*: No wallpaper set should ever be called ~fFTojkvCLIkGVlC6vUo4701djCZczmJDiyHKj4Qdj0zwkLyETsPxP88DLmY9In0I~. A wallpaper set with this name can never be chosen. If you only have one set and it is called this, it will result in an endless loop of rerolling a random wallpaper set. This should not matter to anyone, as this would be a supremely weird way to call your wallpaper set (I recommend more descriptive names), and this exact string is incredibly unlikely to appear in a random character generator, but you have been warned.
|
||||
|
||||
|
||||
* TODOs
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
enable_wallpaper_sets = true
|
||||
used_sets = ["anime", "nature"]
|
||||
wallpapers_per_set = 5
|
||||
notify = False
|
||||
notify = false
|
||||
fallback_wallpaper = "/path/to/paper"
|
||||
loglevel = "INFO"
|
||||
systray = true
|
||||
behavior = fill
|
||||
behavior = "fill"
|
||||
|
||||
# Enter the hours at which you want the wallpaper to change.
|
||||
# If the script is called between one of this times, it will go back to the previous time.
|
||||
|
|
|
@ -211,7 +211,8 @@ class ConfigValidity(_ConfigLib):
|
|||
class WallpaperLogic(_ConfigLib):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self.chosen_wallpaper_set: str = "fFTojkvCLIkGVlC6vUo4701djCZczmJDiyHKj4Qdj0zwkLyETsPxP88DLmY9In0I"
|
||||
self.wallpaper_list: List[str] = None # pyright: ignore
|
||||
self.chosen_wallpaper_set: str = None # pyright: ignore
|
||||
|
||||
# NOTE: This function could be in a different file because it's not needed in the case only 1 wallpaper per set is needed.
|
||||
# Returns a list of a split string that contains a changing time from the config file
|
||||
|
@ -261,7 +262,7 @@ class WallpaperLogic(_ConfigLib):
|
|||
# TODO: Add an way for the user to choose if the wallpaper should scale, fill or otherwise. This needs to be editable in the config file.
|
||||
def set_wallpaper_by_time(self) -> bool:
|
||||
# Ensure use of a consistent wallpaper set
|
||||
if self.chosen_wallpaper_set != "fFTojkvCLIkGVlC6vUo4701djCZczmJDiyHKj4Qdj0zwkLyETsPxP88DLmY9In0I":
|
||||
if not self.chosen_wallpaper_set:
|
||||
self._choose_wallpaper_set()
|
||||
for time_range in range(self.config_total_changing_times - 1):
|
||||
self.current_time_range = time_range # Store current time for better debugging output
|
||||
|
|
Loading…
Reference in a new issue