feat: double-click to rename displays#53
Open
RhoMancer wants to merge 2 commits into
Open
Conversation
Add min/max brightness caps per display with clickable range labels in the GUI.
Add proportional brightness sync mode that maintains relative position across
displays with different ranges. Both sync modes (exact and proportional) are
mutually exclusive. Fixed-width slider values and range labels prevent layout
shifts. Range labels are hidden by default behind a "Set brightness range" toggle.
- New: brightness_range.c state module for min/max per display (GSettings a{si})
- New: range_label.c clickable editable label component
- Modified: show_displays.c with min/max labels, proportional sync, linked
brightness respects individual caps
- Modified: gschema with min/max-brightness-per-display and sync mode keys
- Modified: slider format to fixed-width (%3d) to prevent resizing
👾 Generated with [Letta Code](https://letta.com)
Co-Authored-By: Letta Code <noreply@letta.com>
Double-click on a monitor name to rename it. Press Enter to save, Escape
to cancel. Leave blank to revert to the default name. Custom names persist
in GSettings (display-names a{ss}).
- New: display_names.c state module for custom display name storage
- New: editable_label.c component with double-click to edit pattern
- Modified: show_displays.c to use editable labels with rename callback
Builds on top of the brightness range feature branch.
👾 Generated with [Letta Code](https://letta.com)
Co-Authored-By: Letta Code <noreply@letta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Depends on #52 (brightness range feature) as it builds on the same codebase.
Files changed
src/states/display_names.c— new state module for custom display name storage (GSettingsa{ss})src/ui/components/editable_label.c— new editable label component with double-click-to-editsrc/ui/screens/show_displays.c— uses editable labels with rename callbackinstall_files/com.sidevesh.Luminance.gschema.xml.in— display-names keysrc/constants/main.c— DISPLAY_NAMES_GSETTINGS_KEY defineTest plan
👾 Generated with Letta Code