Skip to content

Latest commit

 

History

History
222 lines (211 loc) · 5.03 KB

waybar.org

File metadata and controls

222 lines (211 loc) · 5.03 KB

Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors.

General

Opening bracket

{

Layout

"layer": "top",
"margin-bottom": 1,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["clock"],
"modules-right": ["tray", "mpd", "network", "bluetooth", "pulseaudio", "backlight", "cpu", "memory", "battery"],

Sway workspaces

"sway/workspaces": {
    "tooltip": false
},

Sway mode

"sway/mode": {
    "tooltip": false
},

MPD

"mpd": {
    "format": "{stateIcon}  {artist}: {title}",
    "format-disconnected": "disconnected",
    "format-stopped": "",
    "interval": 10,
    "state-icons": {
        "paused": "",
        "playing": ""
    },
    "tooltip": false
 },

Tray

"tray": {
    "icon-size": 15,
    "spacing": 10
},

Bluetooth

"bluetooth": {
    "format": "",
    "format-off": "",
    "format-disabled": "",
    "format-on": "",
    "format-connected": " {num_connections}",
    "tooltip": false
},

Clock

"clock": {
    "format": "{:%H:%M   %u   %d.%m.}",
    "tooltip": false
},

Network

"network": {
    "format-wifi": "󰖩 {essid} {signalStrength}%",
    "format-disconnected": "󰖪 off"
},

Backlight

"backlight": {
    "device": "intel_backlight",
    "format": "{icon} {percent}%",
    "format-icons": ["󰃞", "󰃟", "󰃠"],
    "states": {
        "high": 90,
    },
    "tooltip": false
},

Sound

"pulseaudio": {
    "format": "{icon} {volume}%",
    "format-muted": " {volume}%",
    "format-icons": {
        "headphone": "󰋋",
        "default": ["", "", ""]
    },
    "states": {
        "normal": 1,
        "no-sound": 0,
    },
    "tooltip": false
},

Memory

"memory": {
    "interval": 30,
    "format": "󰍛 {percentage}%",
    "states": {
        "critical": 95,
        "warning": 90
    },
    "max-length": 10
},

CPU

"cpu": {
    "interval": 15,
    "format": " {usage}%",
    "states": {
        "critical": 90,
        "warning": 80
    },
    "max-length": 10
},

Battery

"battery": {
    "format": "{icon}  {capacity}%",
    "format-icons": ["", "", "", "", ""],
    "states": {
        "warning": 20,
        "critical": 10,
        "fatal": 5
    },
    "tooltip": false
}

Closing bracket

}

Style

General

* {
    border: none;
    border-radius: 0;
    font-family: <<font>>;
    font-size: 13px;
    min-height: 20px;
    background: #<<base00>>;
    color: #<<base04>>;
}

Modules

#workspaces button {
    padding: 0 12px;
    background: transparent;
    border-bottom: 3px solid #<<base00>>;
}

#workspaces button.visible {
    border-bottom: 3px solid #<<base04>>;
}

#workspaces button.focused {
    border-bottom: 3px solid #<<base0D>>;
}

#mode, #tray, #clock, #network, #backlight, #pulseaudio, #memory, #cpu {
    padding: 0 10px;
    margin: 0 5px;
    border-bottom: 3px solid #<<base00>>;
}

#bluetooth.on, #bluetooth.connected {
    padding: 0 10px;
    margin: 0 5px;
    border-bottom: 3px solid #<<base00>>;
}

#battery {
    padding: 0 10px;
    border-bottom: 3px solid #<<base00>>;
}

#backlight.high {
    border-bottom: 3px solid #<<base04>>;
}

#network.disconnected, #pulseaudio.muted, #pulseaudio.no-sound {
    border-bottom: 3px solid #<<base0A>>;
}

#battery.warning, #cpu.warning, #memory.warning {
    border-bottom: 3px solid #<<base09>>;
}

#battery.critical, #cpu.critical, #memory.critical {
    border-bottom: 3px solid #<<base08>>;
}

#battery.fatal {
    color: #<<base08>>;
    border-bottom: 3px solid #<<base08>>;
}

#battery.charging {
    border-bottom: 3px solid #<<base0B>>;
}