Highly customizable Wayland bar for Sway and Wlroots based compositors.
{
"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": {
"tooltip": false
},
"sway/mode": {
"tooltip": false
},
"mpd": {
"format": "{stateIcon} {artist}: {title}",
"format-disconnected": "disconnected",
"format-stopped": "",
"interval": 10,
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip": false
},
"tray": {
"icon-size": 15,
"spacing": 10
},
"bluetooth": {
"format": "",
"format-off": "",
"format-disabled": "",
"format-on": "",
"format-connected": " {num_connections}",
"tooltip": false
},
"clock": {
"format": "{:%H:%M %u %d.%m.}",
"tooltip": false
},
"network": {
"format-wifi": " {essid} {signalStrength}%",
"format-disconnected": " off"
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["", "", ""],
"states": {
"high": 90,
},
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": " {volume}%",
"format-icons": {
"headphone": "",
"default": ["", "", ""]
},
"states": {
"normal": 1,
"no-sound": 0,
},
"tooltip": false
},
"memory": {
"interval": 30,
"format": " {percentage}%",
"states": {
"critical": 95,
"warning": 90
},
"max-length": 10
},
"cpu": {
"interval": 15,
"format": " {usage}%",
"states": {
"critical": 90,
"warning": 80
},
"max-length": 10
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""],
"states": {
"warning": 20,
"critical": 10,
"fatal": 5
},
"tooltip": false
}
}
* {
border: none;
border-radius: 0;
font-family: <<font>>;
font-size: 13px;
min-height: 20px;
background: #<<base00>>;
color: #<<base04>>;
}
#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>>;
}