Files
labwc-alpine/configs/waybar/config.jsonc
T
2026-09-13 21:35:41 +06:00

87 lines
2.1 KiB
JSON

{
"layer": "top",
"position": "top",
"height": 25,
"spacing": 0,
"modules-left": ["wlr/taskbar"],
"modules-center": ["clock"],
"modules-right": ["network", "bluetooth", "custom/spotify", "custom/language", "pulseaudio", "cpu", "memory", "battery", "wlr/tray"],
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 15,
"tooltip-format": "{title}",
"on-click": "activate"
},
"custom/language": {
"exec": "xkblayout-state print %s | tr 'a-z' 'A-Z'",
"interval": 1,
"format": " {} "
},
"custom/spotify": {
"format": "[{}] ",
"exec": "playerctl metadata --format '{{artist}} - {{title}}' spotify 2>/dev/null || echo ''",
"restart-interval": 1,
"on-click": "spotify",
"max-length": 50
},
"clock": {
"format": "{:%H:%M}",
"format-alt": "{:%d-%m-%Y}"
},
"cpu": {
"format": " {usage}%",
"tooltip": false,
"on-click": "alacritty -e htop"
},
"memory": {
"format": " {}%"
},
"network": {
"min-length": 10,
"format-wifi": " {bandwidthDownBytes}",
"format-ethernet": " {bandwidthDownBytes}",
"format-disconnected": "⚠ DONT",
"interval": 1,
"on-click": "alacritty -e nmtui"
},
"bluetooth": {
"format": "",
"format-disabled": "󰂲",
"format-off": "󰂲",
"format-connected": " {num_connections}",
"tooltip-format": "{device_enumerate}",
"on-click": "blueman-manager"
},
"battery": {
"format": "{capacity}% {icon}",
"format-charging": " {capacity}% {icon}",
"format-plugged": " {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
],
"states": {
"warning": 30,
"critical": 15
}
},
"pulseaudio": {
"format": " {volume}%",
"format-muted": " Muted",
"on-click": "pavucontrol"
},
"wlr/tray": {
"icon-size": 10,
"spacing": 15
}
}