feat: impl wallpaper

This commit is contained in:
2 * r + 2 * t
2025-06-12 21:35:05 +10:00
parent a53a2568ec
commit c043a14ca2
5 changed files with 154 additions and 12 deletions
+11 -1
View File
@@ -1,5 +1,8 @@
import json
from argparse import Namespace
from caelestia.utils.wallpaper import get_colours_for_wall, get_wallpaper, set_random, set_wallpaper
class Command:
args: Namespace
@@ -8,4 +11,11 @@ class Command:
self.args = args
def run(self) -> None:
pass
if self.args.print:
print(json.dumps(get_colours_for_wall(self.args.print, self.args.no_smart)))
elif self.args.file:
set_wallpaper(self.args.file, self.args.no_smart)
elif self.args.random:
set_random(self.args)
else:
print(get_wallpaper())