Skip to content

feat: double-click to rename displays#53

Open
RhoMancer wants to merge 2 commits into
sidevesh:mainfrom
RhoMancer:feature/rename-displays
Open

feat: double-click to rename displays#53
RhoMancer wants to merge 2 commits into
sidevesh:mainfrom
RhoMancer:feature/rename-displays

Conversation

@RhoMancer

Copy link
Copy Markdown

Summary

  • Double-click a monitor name to rename it
  • Press Enter to save, Escape to cancel
  • Leave blank to revert to the default hardware name
  • Custom names persist in GSettings

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 (GSettings a{ss})
  • src/ui/components/editable_label.c — new editable label component with double-click-to-edit
  • src/ui/screens/show_displays.c — uses editable labels with rename callback
  • install_files/com.sidevesh.Luminance.gschema.xml.in — display-names key
  • src/constants/main.c — DISPLAY_NAMES_GSETTINGS_KEY define

Test plan

  • Double-click display name, type new name, press Enter — name updates and persists
  • Double-click, clear name, press Enter — reverts to default hardware name
  • Press Escape to cancel editing
  • Custom names survive app restart

👾 Generated with Letta Code

RhoMan¢er and others added 2 commits May 15, 2026 16:33
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant