feat: implement notification color swatch and dependency verification #8

Merged
rootiest merged 2 commits from feat/notify-swatch into main 2026-05-03 18:09:55 +00:00
Owner

This pull request adds support for notification color swatches and implements installation dependency warnings.

Notification Swatch Support

  • Added ImageMagick detection logic (magick or convert).
  • Configured the script to generate a 64x64 color swatch image and attach it to the notify-send payload if swatch_mode is enabled.
  • Ensured ImageMagick usage is non-fatal; if generation fails, it falls back to a standard notification gracefully.

Dependency Verification (check_dependencies)

  • Implemented a post-installation dependency checker that validates both optional and required dependencies.
  • It detects the presence of magick / convert (ImageMagick), wl-copy / xclip (Clipboard utilities), jq and curl, and python3 and PyQt6 (essential for KDE Wayland Color Picker functionality).
  • The script checks the desktop environment directly for WAYLAND_DISPLAY and XDG_CURRENT_DESKTOP=KDE.
  • During --install, users receive clear, color-coded warnings if optional tools are missing, describing precisely what functionality will be limited.

Test Suite Enhancements

  • Added a mock test environment inside tests/run_tests.sh designed to test the --install command with a missing toolset.
  • Verified that the script correctly throws all expected missing dependency warnings without failing the installation.
This pull request adds support for notification color swatches and implements installation dependency warnings. ### Notification Swatch Support - Added ImageMagick detection logic (`magick` or `convert`). - Configured the script to generate a 64x64 color swatch image and attach it to the `notify-send` payload if `swatch_mode` is enabled. - Ensured ImageMagick usage is non-fatal; if generation fails, it falls back to a standard notification gracefully. ### Dependency Verification (`check_dependencies`) - Implemented a post-installation dependency checker that validates both optional and required dependencies. - It detects the presence of `magick` / `convert` (ImageMagick), `wl-copy` / `xclip` (Clipboard utilities), `jq` and `curl`, and `python3` and `PyQt6` (essential for KDE Wayland Color Picker functionality). - The script checks the desktop environment directly for `WAYLAND_DISPLAY` and `XDG_CURRENT_DESKTOP=KDE`. - During `--install`, users receive clear, color-coded warnings if optional tools are missing, describing precisely what functionality will be limited. ### Test Suite Enhancements - Added a mock test environment inside `tests/run_tests.sh` designed to test the `--install` command with a missing toolset. - Verified that the script correctly throws all expected missing dependency warnings without failing the installation.
rootiest added 1 commit 2026-05-03 18:05:32 +00:00
feat: implement notification color swatch and dependency verification
Auto Label PRs / label (pull_request) Successful in 3s
Test PR / test (pull_request) Successful in 6s
7c882bb26c
rootiest added 1 commit 2026-05-03 18:08:56 +00:00
docs: update README with swatch and dependency checks
Test PR / test (pull_request) Successful in 7s
Release on Merge / release (pull_request) Successful in 6s
867b8ccf26
rootiest merged commit 24747230e1 into main 2026-05-03 18:09:55 +00:00
rootiest deleted branch feat/notify-swatch 2026-05-03 18:09:56 +00:00
Sign in to join this conversation.