Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Show bar only when holding mod key #100

Open
Etmix opened this issue May 27, 2024 · 0 comments
Open

Feature request: Show bar only when holding mod key #100

Etmix opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Etmix
Copy link

Etmix commented May 27, 2024

Is it already possible or possible to implement only showing the bar when holding a key?

To save screen space and avoid burn-in on OLED monitors, I'd like to only show the bar when holding the mod-key. This way I can see the bar when switching workspaces (because my keybinds for that in Hyprland are Mod-[1-9]) and on-demand when I need it, but it doesn't take screen space and doesn't risk burn-in when I don't.

Examples for bars that implement something like that are waybar and swaybar.
I would much prefer using gBar though.
Also, the implementation in waybar isn't great, because you can only toggle it by sending SIGUSR1, which can lead to problems when the key pressed and released events get mixed up.

A possible workaround is to kill and re-create the bar every time, but that isn't great performance-wise.

@Etmix Etmix added the bug Something isn't working label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant