Commit Graph

20 Commits

Author SHA1 Message Date
Haikal 5c9ce66c03 feat: expose more environment variables in post-hook (#107)
* feat: expose more environment variables in post-hook

* fix: formatted
2026-04-29 23:56:07 +10:00
Kalagmitan b00c601d0a refactor: enforce stricter type hints (#91)
LSP was screaming at me so I decided to just address it to get it off my
screen.

+ Fixed the type hints
:= Modified and added type hints for certain functions and variables in
most of the files in the utils/ folder (and some in the subcommands/
folder) for clarity and so pyright's type checker wouldn't cry.
:+ To resolve certain type issues, I had to add a bit more tiny
additional code such as, additional checks if a variable is None, a tiny
class in utils/material/generator.py to resolve the constructor usage
mismatch between what the DynamicScheme accepts and what the code
actually passes, and etc.
- Renamed certain functions and variables for clarity and also for some
to not collide with pre-existing definitions from well-known library
imports.
+ PIL has reorganized their code a bit, so the code is made to reflect
their new definitions.
= Reorganized the single import statement for "colourfulness" in
utils/wallpaper.py to be close to the top.
(I think that's it)

Side Effects?:
Everything should work the same as no logic change was done whatsover
(unless we consider the added if statements for type checking as a logic
change). I've tested it, everything seems to be in urdir.
2026-03-15 22:56:05 +11:00
2 * r + 2 * t cc155cf432 fix: format 2026-03-09 21:26:37 +11:00
xeisenberg 51cecd481c fix: wall not Path type (#89) 2026-03-04 19:30:11 +11:00
2 * r + 2 * t 0b9e416175 fix: missing colon 2026-02-21 00:52:12 +11:00
Unrectified 8ce97ea3f5 feat: add GIF files support as wallpaper (#88)
* feat: add GIF files support as wallpaper (not animated tho)

* tweak: simplifying variable use

* fix: git is good but damn it's annoying

* fix

---------

Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
2026-02-21 00:17:16 +11:00
2 * r + 2 * t d890f7c3af feat: add dynamic hard flavour
Someone requested idk who tho
2026-02-15 00:24:14 +11:00
Davi Ribeiro 4593b823d7 wallpaper: fix random for multi-monitor setup (#63) 2025-10-17 04:59:13 +11:00
Givani Boekestijn c6f46db36c feat: add wallpaper post-hook for dynamic theming (#61)
* feat: add wallpaper post-hook for dynamic theming

Adds support for running custom shell commands after wallpaper changes
via the `wallpaper.postHook` config option in `~/.config/caelestia/cli.json`.

The wallpaper path is made available to the hook via the $WALLPAPER_PATH
environment variable. This enables integration with tools like `matugen`
or `pywal` for dynamic theming based on wallpaper colors.

The hook runs after apply_colours() in set_wallpaper(), ensuring it
executes for all wallpaper change methods (UI, IPC, and direct CLI).

* Replaced comment in example config with no-op command
2025-10-17 04:56:32 +11:00
2 * r + 2 * t 6cdfe72e8b wallpaper: random prevent duplicate 2025-08-23 16:22:09 +10:00
2 * r + 2 * t e2a34210e5 wallpaper: allow relative paths
Fixes caelestia-dots/shell#200
2025-07-07 14:35:39 +10:00
2 * r + 2 * t 35ea4a2dbc wallpaper: better variant detection 2025-06-25 23:44:50 +10:00
2 * r + 2 * t affa3bfd21 [!B] wallpaper: smart variant 2025-06-24 00:30:52 +10:00
2 * r + 2 * t 82f98a4f6a [!B] colours: better colours
Also remove multiple dynamic flavours
Add extended material (success colours)
2025-06-24 00:11:20 +10:00
2 * r + 2 * t 3416178ad4 wallpaper: fix print command 2025-06-17 13:29:25 +10:00
2 * r + 2 * t 9b58f7bf02 wallpaper: fix smart mode
Do not switch mode if not dynamic scheme
2025-06-17 12:13:21 +10:00
2 * r + 2 * t 8889378c1d wallpaper: fix print opt
Print actual scheme, not just colours
2025-06-15 14:09:18 +10:00
2 * r + 2 * t 9da9d7bb1b wallpaper: fix when no wall 2025-06-13 14:50:25 +10:00
2 * r + 2 * t a97de9d430 wallpaper: cache smart mode 2025-06-12 21:51:59 +10:00
2 * r + 2 * t c043a14ca2 feat: impl wallpaper 2025-06-12 21:35:05 +10:00