Hiding hyprland/window when there is no window.on display #4626
dorrekeith
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I have been trying to hyprland/window to not be shown when there is no window on that display. At present it is show the outline of a what would be there like a little pill shape with the colour of the current theme.
I have searched through other posts but what ever I do it doesn't seem to work. Thanks in advance for any help
here is my config
window#waybar.DP-2 #window.empty {
opacity: 0; /* hide visually /
color: transparent; / avoid stray glyphs /
margin: 0;
padding: 0;
border-width: 0;
min-width: 0; / let it collapse /
font-size: 0; / remove residual text space */
box-shadow: none;
background: transparent;
}
/* When it's NOT empty on DP-2, make sure it renders normally /
window#waybar.DP-2 #window:not(.empty) {
opacity: 1;
font-size: 12px; / or whatever your default is */
color: inherit;
}
Beta Was this translation helpful? Give feedback.
All reactions