Conversation
Expose GTK leave notifications as the generic top-level on-mouse-exit bar option. Register the leave event mask on the Waybar window when configured and execute the configured command from Bar::handleMouseLeave. This is useful for hiding the bar when the pointer leaves the entire bar: ``` "on-sigusr2": "HIDE", "on-mouse-exit": "kill -USR2 \"$PPID\"" ```
4 tasks
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.
What does this PR do?
Expose GTK leave notifications as the generic top-level on-mouse-exit bar option. Register the leave event mask on the Waybar window when configured and execute the configured command from Bar::handleMouseLeave.
This is useful for hiding the bar when the pointer leaves the entire bar:
Coupled with waycorner to activate the bar on mouse y=0, I have a waybar that behaves pretty well.
Related issues
Execute custom command on entering/exiting waybar area #3475 Execute custom command on entering/exiting Waybar area open. It requests on-mouse-enter and on-mouse-exit bar options for showing/hiding a second bar.
Feature: Auto-Hide #3853 Feature: Auto-Hide (closed) requests revealing the bar on pointer movement and hiding it when the pointer leaves.
[feature request] Idempotent and user-configurable kill signals #3928 Idempotent and user-configurable kill signals (closed) discusses automatic hiding/showing and references issues Feature: Auto-Hide #3853, how to hide one of multiple waybar bars, and then toggle between them #3456, [Feature request] Communication with waybar via hyprland IPC #2330, and Implement Auto Hide #1058.
Checklist
clang-formatninja -C build)man/)