Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

faulty corners in waybar with hyprland

Open AnkurAlpha opened this issue 3 years ago • 7 comments

I want some rounded corners in waybar for which I set it to something like this :

window#waybar {
    background:rgba (0, 0, 0, 0.5);
    border-radius: 20px 20px 20px 20px; 
}

in style.css but it shows me something like this : 2023-10-19T12:55:38,657360466+05:30 you can see on left and right side there is a little bit of rectangular transparent corner with rounded corners, 2023-10-19T16:43:34,003422460+05:30 2023-10-19T16:54:52,692079136+05:30 The corners seems to be half rounded and half rectangular.

Any help for this issue will be appreciated :slightly_smiling_face: Thanks in advance :smile:

AnkurAlpha avatar Oct 19 '23 11:10 AnkurAlpha

I assume that the widget with the burger menu is the culprit with the pointy corners. Did you change the background: transparent on the elements subordinated window#waybar?

I can think of two ways to approach this issue.

In your css set the background property of all elements to transparent (that works for me, you may want to check my dotfiles):

* {
background: transparent
}

Alternatively start waybar with the GTK debugger tool env GTK_DEBUG=interactive waybar and check there the css properties of all elements in the hierarchy to see which one has a background and corner vlaue set.

mutoroglin avatar Oct 21 '23 08:10 mutoroglin

Thanks !!!

In your css set the background property of all elements to transparent (that works for me, you may want to check my dotfiles):

* {
background: transparent
}

That gave me something like these : 2023-10-21T17:08:10,387123348+05:30

2023-10-21T17:07:11,082834321+05:30

env GTK_DEBUG=interactive waybar

I am pretty newbi in these things, so I just clicked on some random stuffs that first appeared on screen after typing the commands sometimes it used blink for some of things :

http://0x0.st/HJWh.mp4

IDK whether it would be any helpful or not :slightly_frowning_face:

AnkurAlpha avatar Oct 21 '23 11:10 AnkurAlpha

图片

imxyy1soope1 avatar Oct 22 '23 03:10 imxyy1soope1

Thanks :smiley: !!! I did this and it worked :

#status bar
exec-once = waybar
# blurls = waybar
layerrule = blur , waybar
layerrule = ignorezero , waybar

2023-10-22T18:32:04,593619558+05:30

AnkurAlpha avatar Oct 22 '23 13:10 AnkurAlpha

Thanks 😃 !!! I did this and it worked :

#status bar
exec-once = waybar
# blurls = waybar
layerrule = blur , waybar
layerrule = ignorezero , waybar

2023-10-22T18:32:04,593619558+05:30

I have same problem, but set layerrule is not work. Your waybar is in good condition now?

command-z-z avatar May 29 '24 07:05 command-z-z

Thanks 😃 !!! I did this and it worked :

#status bar
exec-once = waybar
# blurls = waybar
layerrule = blur , waybar
layerrule = ignorezero , waybar

2023-10-22T18:32:04,593619558+05:30

Sorry to bother you, I fix it. I don't notice that i set box-shadow: 1px 1px 10px 10px @mantle; in waybar config so that this problem arises.

command-z-z avatar May 29 '24 07:05 command-z-z

Your waybar is in good condition now?

Yup, if you want, you can see my configs here :eyes:

AnkurAlpha avatar May 29 '24 08:05 AnkurAlpha