Commit Graph

13 Commits

Author SHA1 Message Date
rootiest 5f659b90e3 fix: notify when clipboard utility is missing
Release on Merge / release (pull_request) Successful in 6s
- 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
2026-04-28 22:17:31 -04:00
rootiest d170bd15cf refactor: remove references to legacy setting
The `--alpha` flag and `alpha = true/false` config file options remain
functional but references to them are removed as they are now superseded
by the output formats with alpha channels (rgba, hexa, hsla).
New users/configurations should use the relevant output formats. The
legacy flag/options remain active for backward-compatibility with older
configs/scripts.
2026-04-27 23:58:14 -04:00
rootiest 8a70c79602 Modernization Major Release
This PR modernizes `color-tool` with a suite of new features, improved architecture, and automated release workflows.

### 🚀 Key Features

*   **Multiple Format Support**: Now supports `hex`, `hexa`, `rgb`, `rgba`, `hsl`, and `hsla` output formats.
*   **Flexible Output**: Use the new `--output` flag to specify one or more formats (e.g., `--output hex,hsl`).
*   **Visual Swatches**: Added a `--swatch` flag to display a colored block in the terminal next to the values.
*   **Intelligent Parsing**: Improved color input parsing that handles various CSS-style color strings.
*   **Modern CLI Interface**: Added support for `--no-` flags (e.g., `--no-copy`, `--no-pick`) for fine-grained control.
*   **Embedded Picker Support**: The KDE Plasma color picker logic is now more robustly managed and can be automatically generated if missing.

### 🛠 Architectural Improvements

*   **Robust Configuration**: Refactored the config loader to support a clear priority hierarchy: **CLI Flags > Desktop Config > Default Config**.
*   **Simplified Distribution**: Removed the hard dependency on an external `.py` file by embedding the picker helper script generation.
*   **Installation Enhancements**: The `--install` process now handles `.desktop` file generation, symlinking, and sample configuration seeding more reliably.

### 📦 CI/CD & Documentation

*   **Automated Releases**: Added a Gitea Action to automatically create a versioned release and upload the `color-tool` binary whenever a PR is merged into `main`.
*   **Comprehensive Docs**: Added a new `README.md` with detailed installation, usage, and configuration guides.
*   **Licensing**: The project is now explicitly licensed under **GPLv3** with appropriate headers and a `LICENSE` file.

### 🤝 Credits
Integration for the KDE Plasma color picker is based on the work by [SASUPERNOVA](https://github.com/SASUPERNOVA/wl-colorpicker-plasma).

Reviewed-on: #1
v2026.04.28-0323
2026-04-28 03:23:00 +00:00
rootiest 898d44dd17 docs: add credit for wl-colorpicker-plasma script to readme
Release on Merge / release (pull_request) Successful in 11s
2026-04-27 23:16:23 -04:00
rootiest ce410d1450 chore(license): add license file and headers to source files 2026-04-27 23:15:17 -04:00
rootiest 6a88e396c5 chore: update ignore patterns
Include AI Agent documents.
2026-04-27 22:55:01 -04:00
rootiest 7da7664ca0 ci: add Gitea workflow to automate releases on PR merge 2026-04-27 22:48:13 -04:00
rootiest 24bc490827 docs: add comprehensive README with installation and usage guides 2026-04-27 22:44:39 -04:00
rootiest 5c87e382de feat: modernize color-tool with multiple formats, HSL support, and embedded picker
- Added --output flag supporting hex, rgb, hsl, rgba, hsla, hexa, and 'all' formats
- Implemented HSL/HSLA conversion using internal Python logic
- Added --[no-] prefix support for all toggleable flags (json, name, swatch, copy, notify, pick)
- Embedded KDE Plasma color picker Python script within the main bash script for portability
- Refactored argument parsing to implement a robust priority system (CLI > Desktop Config > Default Config)
- Improved validation to catch invalid output formats before triggering the color picker
- Updated installation logic to generate all necessary components and sample configuration
- Fixed swatch formatting when outputting JSON
- Refined desktop mode behavior and configurability
2026-04-27 22:40:55 -04:00
rootiest 6c2c42d3e5 feat: add modernized functionality
- Installation
- Desktop/GUI mode
- Configuration file
- Improved code and documentation formats
2026-04-27 21:36:39 -04:00
rootiest 06ac7c990d chore: remove original script file 2026-04-27 21:35:28 -04:00
rootiest f995f1c52e chore: update ignore patterns 2026-04-27 21:34:34 -04:00
rootiest 110b71d9f0 initial commit 2026-04-27 19:48:53 -04:00