Conversation
Compact floating title label alternative to full titlebar, positioned by edge/alignment, capped to window width, with configurable corner radius, autohide-on-unfocus, and avoid-cursor slide. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
9-task breakdown covering data model, content-box geometry, scene positioning, corner radius, the label command, titlebar suppression, focus-based autohide fade, and avoid-cursor slide. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
devojoni
marked this pull request as draft
September 16, 2026 11:11
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
NOTE: This is a feature I found myself thinking about a lot. This was implemented with the heavy use of Claude. I put this pull request up just in case someone else would like to take ownership of this feature and maybe finds some worth in the code. In all honesty I don't understand all of the code properly and have most likely misunderstood a good chunk of the rest.
Adds a label decoration mode — a small floating title chip that overlaps window content instead of reserving a full-width titlebar strip. Configurable edge/alignment, max width (px or %), corner radius (fixed or match-window), focus-based autohide, and cursor-avoidance slide. Works independently of border mode; suppresses the reserved titlebar strip when combined with border normal. Applies to leaf view containers (tabbed/stacked tab-strip entries are unaffected — out of scope for v1).
New command: label enable|disable|toggle|position|max_width|corner_radius|autohide|avoid_cursor (see sway.5 for full syntax — man page entry included in this PR).
Test plan
Known limitations
Some screenshots and clips
With window border


Without window border
Different positions






Different radi

Maximum width

label_drag.mp4
label_autohide.mp4
label_avoid_cursor.mp4