aboutsummaryrefslogtreecommitdiffstats
path: root/hyprsunset_qt/config.py
AgeCommit message (Collapse)AuthorFilesLines
27 hoursdocs: GPLv2 license, README, attributionDanilo M.1-0/+4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
28 hoursfeat: field validation helpersDanilo M.1-0/+15
Add validation functions for config parameters: valid_time() for HH:MM format (0-23:0-59), valid_temperature() for Kelvin range 1000-20000, and valid_gamma() for gamma range 0.0-2.0. These are used by the UI before saving config changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 hoursfeat: read/write hyprsunset.confDanilo M.1-0/+17
Add read_config() and write_config() functions for managing hyprsunset configuration files. Implements file I/O operations with automatic parent directory creation and CONFIG_PATH default to ~/.config/hypr/hyprsunset.conf. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 hoursfeat: serialize profiles with day/night taggingDanilo M.1-0/+44
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 hoursfeat: parse hyprsunset.conf profilesDanilo M.1-0/+40
Implement minimal config parser with Profile dataclass and parse_config function. Regex-based parsing of hyprsunset.conf format with support for time, identity, temperature, and gamma fields. Foundation for later tasks (serialize, read/write, validation). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>