$ show erans/hyprmon
HyprMon is a TUI (Terminal User Interface) tool for configuring monitors on Arch Linux running Wayland with Hyprland. It provides a visual 'desk map' where users can arrange monitors using keyboard and mouse controls, with real-time application to Hyprland. The application reads monitor configuration via hyprctl, allows live adjustments, and persists configurations to Hyprland's config files. It features profile management, advanced display settings (HDR, VRR, color depth), monitor mirroring with circular dependency prevention, and automatic workspace migration when monitors are added/removed. Built with Go using the Bubble Tea framework for the TUI and Lip Gloss for styling.
The LLM identified 2 files worth highlighting for reuse:
Implements EDID-based monitor identification with stable HardwareID generation, disambiguation of duplicate devices, legacy profile migration, and HardwareID-based configuration matching. Provides isolated functions for building hardware IDs from EDID data, resolving conflicts when multiple monitors have identical identifiers, migrating legacy profiles to use HardwareIDs, and checking migration needs. Demonstrates non-obvious skill in handling edge cases like empty fields, whitespace normalization, and deterministic disambiguation.
Provides atomic JSON-based settings management with file locking, proper permissions, and error handling. Implements load/save operations with write-then-rename atomicity, preference getters/setters keyed by HardwareID, and automatic directory creation. Demonstrates non-obvious skill in preventing race conditions, ensuring file integrity through sync operations, and handling missing files gracefully.