Skip to content
Alex edited this page Aug 10, 2018 · 9 revisions

Welcome to the Waybar wiki!

Configuration

The configuration uses the JSON file format.

{
    "modules-left": ["workspaces"],
    "modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "clock"],
    "cpu": {
        "format": "{}% "
    },
    "memory": {
        "format": "{}% "
    },
    "battery": {
        "format": "{}% "
    },
    "network": {
        "interface": "wlp2s0",
        "format": "{essid} ({signalStrength}%) "
    },
    "pulseaudio": {
        "format": "{}% ",
        "format-muted": ""
    }
}

Customization

The customization uses the CSS file format.

* {
    border: none;
    border-radius: 0;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
}

window {
    background: rgba(43, 48, 59, 0.5);
    border-bottom: 3px solid rgba(100, 114, 125, 0.5);
    color: white;
}

.workspaces button {
    padding: 0 5px;
    background: transparent;
    color: white;
    border-bottom: 3px solid transparent;
}

.workspaces button.current {
    background: #64727D;
    border-bottom: 3px solid white;
}

.clock, .battery, .cpu, .memory, .network, .pulseaudio {
    padding: 0 10px;
    margin: 0 5px;
}

.clock {
    background-color: #64727D;
}

.battery {
    background-color: #ffffff;
    color: black;
}

.battery.charging {
    color: white;
    background-color: #26A65B;
}

.cpu {
    background: #2ecc71;
    color: #000000;
}

.memory {
    background: #9b59b6;
}

.network {
    background: #2980b9;
}

.pulseaudio {
    background: #f1c40f;
    color: black;
}

.pulseaudio.muted {
    background: #90b1b1;
    color: #2a5c45;
}
Clone this wiki locally