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.
- 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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
notify_errorfunction for high-visibility warning notifications.process_colorto capture clipboard failures and trigger notifications when--notifyis active.Verification
Verified using a restricted
PATHenvironment wherewl-copyandxclipwere removed, confirming thatnotify-sendis correctly invoked with a warning payload.