Feat(bar): add a toggle for exclusion zone#2066
Merged
ItsLemmy merged 10 commits intonoctalia-dev:mainfrom Mar 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a user-facing toggle to control whether the bar’s Wayland exclusion zone is reduced by 1 physical pixel (to influence window “bleed” under the bar), addressing compositor-specific behavior differences (e.g., Niri vs Hyprland).
Changes:
- Add a new
bar.exclusionZoneOffsetboolean setting with defaults. - Expose the setting as an
NTogglein the Bar → Appearance settings UI and include it in settings search indexing. - Update
BarExclusionZone.qmlto apply a 0px/1px (physical) inset based on the toggle and display scale.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| Modules/Panels/Settings/Tabs/Bar/AppearanceSubTab.qml | Adds a new toggle in the Bar Appearance settings for the exclusion zone inset behavior. |
| Modules/MainScreen/BarExclusionZone.qml | Makes the 1-physical-pixel exclusion zone inset conditional on the new setting. |
| Commons/Settings.qml | Introduces the new bar.exclusionZoneOffset setting in the settings adapter. |
| Assets/settings-search-index.json | Adds the new toggle’s label/description keys to the settings search index. |
| Assets/settings-default.json | Defines the new setting’s default value in shipped defaults. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request
Add a toggle to be able to manually configure the 1px exclusion zone bleed. No translation, but could be added if needed.
Motivation
Currently,
BarExclusionZone.qmlhardcodes a 1 physical pixel reduction (bleedInset) to the bar's reserved space. This hardcoded approach does not work simultaneously for both Niri and hyprland. To fix this conflict, this PR makes the exclusion zone offset configurable, allowing users to change the bleed behavior on the fly depending on their compositor and gap preferences.Type of Change
Mark the relevant option with an "x".
Related Issue
Testing
Screenshots / Videos
Menu
With the option turned off
With the option turned on
Checklist
Additional Notes
It's not a complete fix, as in niri with gaps (e.g. 4) and the setting turned off (
enableExclusionZoneInsetisfalse) there is still 1 extra pixel visible. It does seem like a niri issue though.When scrolling left
When scrolling right