Add button hover effect and inactive bar color support - #599
Open
Bennch wants to merge 1 commit into
Open
Conversation
This commit adds two new features to hyprbars: 1. Button hover background effect: - Added `button_hover_bg_color` config option for Windows 11-style hover effect - Hover rectangles are properly centered on button icons - Close button (rightmost) extends to window edge - All buttons include half padding on each side for even spacing - Hover effect scales with bar_button_padding setting 2. Separate bar colors for active/inactive windows: - Added `bar_color_inactive` config option - Bar color now changes based on window focus state - Matches Hyprland's border behavior (active/inactive) - Smooth animated transition between colors - Falls back to `bar_color` if `bar_color_inactive` is not set Config example: plugin:hyprbars:button_hover_bg_color = rgba(ffffff22) plugin:hyprbars:bar_color = rgba(33333388) plugin:hyprbars:bar_color_inactive = rgba(2E2E32FF) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Pocitanoide
approved these changes
Jan 19, 2026
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.
This commit adds two new features to hyprbars:
Button hover background effect:
button_hover_bg_colorconfig option for Windows 11-style hover effectSeparate bar colors for active/inactive windows:
bar_color_inactiveconfig optionbar_colorifbar_color_inactiveis not setConfig example:
plugin:hyprbars:button_hover_bg_color = rgba(ffffff22)
plugin:hyprbars:bar_color = rgba(33333388)
plugin:hyprbars:bar_color_inactive = rgba(2E2E32FF)