fix: notify when clipboard utility is missing #2

Merged
rootiest merged 1 commits from fix/copy-fail into main 2026-04-29 02:18:27 +00:00
Owner

This PR adds system notifications and improved CLI feedback when the user attempts to copy a color but no clipboard utility (like wl-copy or xclip) is installed.

Changes

  • Added notify_error function for high-visibility warning notifications.
  • Updated process_color to capture clipboard failures and trigger notifications when --notify is active.
  • Refined the warning message for missing utilities to be more informative.

Verification

Verified using a restricted PATH environment where wl-copy and xclip were removed, confirming that notify-send is correctly invoked with a warning payload.

This PR adds system notifications and improved CLI feedback when the user attempts to copy a color but no clipboard utility (like wl-copy or xclip) is installed. ### Changes - Added `notify_error` function for high-visibility warning notifications. - Updated `process_color` to capture clipboard failures and trigger notifications when `--notify` is active. - Refined the warning message for missing utilities to be more informative. ### Verification Verified using a restricted `PATH` environment where `wl-copy` and `xclip` were removed, confirming that `notify-send` is correctly invoked with a warning payload.
rootiest added 1 commit 2026-04-29 02:17:51 +00:00
fix: notify when clipboard utility is missing
Release on Merge / release (pull_request) Successful in 6s
5f659b90e3
- Add notify_error function to send normal urgency warning notifications
- Update process_color to track clipboard failure and trigger error notification
- Improve warning message when clipboard utilities (wl-copy/xclip) are absent
rootiest merged commit 344fc140dc into main 2026-04-29 02:18:27 +00:00
rootiest deleted branch fix/copy-fail 2026-04-29 02:18:27 +00:00
Sign in to join this conversation.