How to remove waybar rounded corners?

Hi everyone,

I installed Garuda Sway yesterday. I used arch with i3 before this but since I recently bought an AMD card, I wanted to try sway without having to set everything up manually. I changed a few things like the background and i removed a few waybar modules.

The only thing that’s bugging me now is that all the corners of the waybar are rounded. I want only the bottom left and bottom right corners to be rounded. I’ve looked at ~/.config/sway/config.d/default, ~/.config/sway/config.d/swayfx, ~/.config/sway/config.d/theme, ~/.config/waybar/config and ~/.config/waybar/style.css but seems to be impossible to make the corners straight. What am I missing?

Thanks in advance,
Bram

Use Hyprland :wink:

Seems you were on the right track.

In ~/.config/sway/config.d/swayfx, change the value of corner_radius in layer_effects: etc/skel/.config/sway/config.d/swayfx · master · Garuda Linux 🦅 / Themes and Settings / Settings / Garuda Sway settings · GitLab

In ~/.config/waybar/style.css, change the value of border-radius in the first block: etc/skel/.config/waybar/style.css · master · Garuda Linux 🦅 / Themes and Settings / Settings / Garuda Sway settings · GitLab

I think you will need to change them both because they are actually two different layers.

2 Likes

Thanks a lot, it works now! All I had to do was remove the layer_effects line (else there would still be a shadow under the rounded corners) and add the border-radius line to the window#waybar block (else the workspace icons would be affected too).

1 Like

Glad to hear it!

I forgot to say, if you want only specific corners rounded you should be able to specify that by using the border-bottom-left-radius and border-bottom-right-radius properties instead of border-radius.

For example:

* {
    color: #eceff4;
    border: 1px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 0 0;
    font-family: JetBrainsMono, SymbolsNerdFont;
    font-size: 15px;
    margin-right: 2px;
    margin-left: 2px;
    padding-bottom: 2px;
}
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.