diff --git a/CLAUDE.md b/CLAUDE.md index 5557d88..eecca95 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -41,5 +41,6 @@ uv run moongreet - `users.py` — Benutzer aus /etc/passwd, Avatare, GTK-Themes - `sessions.py` — Wayland/X11 Sessions aus .desktop Files - `power.py` — Reboot/Shutdown via loginctl -- `greeter.py` — GTK4 UI (Overlay-Layout) +- `i18n.py` — Locale-Erkennung (LANG / /etc/locale.conf) und String-Tabellen (DE/EN) +- `greeter.py` — GTK4 UI (Overlay-Layout), Faillock-Warnung nach 2 Fehlversuchen - `main.py` — Entry Point, GTK App, Layer Shell Setup diff --git a/data/CREDITS.md b/data/CREDITS.md index dad1128..14dc6ff 100644 --- a/data/CREDITS.md +++ b/data/CREDITS.md @@ -2,7 +2,7 @@ ## wallpaper.jpg -- **Title**: Canyon Mountains on Night Sky -- **Author**: eberhard grossgasteiger -- **Source**: https://www.pexels.com/photo/canion-mountains-on-night-sky-2098428/ -- **License**: Pexels License (free for personal and commercial use) +- **Title**: Snowy Mountain +- **Author**: Daniel Leone +- **Source**: https://unsplash.com/de/fotos/snowy-mountain-g30P1zcOzXo +- **License**: Unsplash License (free for personal and commercial use, attribution not required) diff --git a/data/wallpaper.jpg b/data/wallpaper.jpg index 16962f8..86371cd 100644 Binary files a/data/wallpaper.jpg and b/data/wallpaper.jpg differ diff --git a/src/moongreet/data/wallpaper.jpg b/src/moongreet/data/wallpaper.jpg new file mode 100644 index 0000000..86371cd Binary files /dev/null and b/src/moongreet/data/wallpaper.jpg differ diff --git a/src/moongreet/greeter.py b/src/moongreet/greeter.py index f8359d5..47a4868 100644 --- a/src/moongreet/greeter.py +++ b/src/moongreet/greeter.py @@ -25,6 +25,7 @@ LAST_USER_PATH = Path("/var/cache/moongreet/last-user") FAILLOCK_MAX_ATTEMPTS = 3 PACKAGE_DATA = files("moongreet") / "data" DEFAULT_AVATAR_PATH = PACKAGE_DATA / "default-avatar.svg" +DEFAULT_WALLPAPER_PATH = PACKAGE_DATA / "wallpaper.jpg" AVATAR_SIZE = 128 @@ -69,9 +70,12 @@ class GreeterWindow(Gtk.ApplicationWindow): self.set_child(overlay) # Background wallpaper (blurred and darkened) - if self._config.background and self._config.background.exists(): + bg_path = self._config.background + if not bg_path or not bg_path.exists(): + bg_path = Path(str(DEFAULT_WALLPAPER_PATH)) + if bg_path.exists(): background = Gtk.Picture() - background.set_filename(str(self._config.background)) + background.set_filename(str(bg_path)) background.set_content_fit(Gtk.ContentFit.COVER) background.set_hexpand(True) background.set_vexpand(True)