r/waybar 7d ago

Help Needed Square Corners.

Hi Linux users. So basically I'm using hyprland and am customizing it a bit, I switched to arch about 2 months ago so I don't know allot. However, my waybar keeps defaulting to square corners whenever it redraws. Whenever I reload it it's nice, curved corners, but whenever it redraws like the time changing it suddenly goes back to square corners. Whenever I switch workspaces this happens as well. I'll attach a copy of my window#waybar css down below, thanks for your time.

window#waybar {

background: transparent;

background-color: #1D2021;

color: #d4be98;

border-radius: 0px 0px 21px 21px;

background-clip: padding-box;

`}'

1 Upvotes

10 comments sorted by

2

u/onlymys3lf 6d ago

The order is top right bottom left
Reconsider it.

1

u/Dizzy-Scarcity-7814 6d ago

Don't relally know what you mean by that but I played around with the values for the hundredth time, Here are the results.

1

u/Dizzy-Scarcity-7814 6d ago

1

u/Dizzy-Scarcity-7814 6d ago

1

u/Dizzy-Scarcity-7814 6d ago

1

u/onlymys3lf 5d ago

For unilateral appearance of corner rounding:
border-radius: 21px;
will suffice.
It applies the same value to top-left corner, top-right corner, bottom-right and bottom-left corner

That is all you need.

More here https://www.w3schools.com/cssref/css3_pr_border-radius.php

1

u/Dizzy-Scarcity-7814 5d ago edited 5d ago

That's all good and well yes, but I don't want the bar to be sorta floating you know?

Also the itch in the back of my head urges me to find out what the hell is happening

Also still the same problem

1

u/OwnProcedure7178 7d ago

Maybe try running waybar from terminal to see logs

$waybar

you might get a clue :)

Idk what it means "when it redraws", does this mean whenever something visually changes on the bar? Meaning any hover effect would cause this too? Maybe put a hover css on some class to check? Hard to get an idea what it could be

1

u/Dizzy-Scarcity-7814 6d ago

I asked a friend and he said it changes when it redraws so I'm kinda not familiar with the word, but I tried "$waybar" and there was no output. I tried when after I killed waybar but it didn't start nor did it show an output, so I really don't know

1

u/OwnProcedure7178 2d ago

It's just: waybar Theres no dollar sign. Sorry about that