Waybar on SwayWM View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-swaywm" href="/tags/swaywm">swaywm</a>, and <a class="post-tag post-tag-waybar" href="/tags/waybar">waybar</a>

Waybar can be used as a status bar for SwayWM. You tell Sway to use it with the following snippet in your Sway configuration:

bar {
    swaybar_command waybar
}

Configure Waybar itself in ~/.config/waybar/config:

{
    "layer": "top",
    "modules-left": ["sway/workspaces", "sway/mode"],
    "modules-center": ["sway/window"],
    "modules-right": ["clock"],
    "sway/window": {
        "max-length": 50
    },
    "clock": {
        "format-alt": "{:%a, %d. %b  %H:%M}"
    }
}