.s/.config/waybar/config
2022-10-26 00:48:19 -06:00

74 lines
2.0 KiB
Plaintext

{
"position": "top",
"spacing": 0,
"modules-left": ["network", "clock"],
"modules-center": ["sway/workspaces", "custom/spotifyd"],
"modules-right": ["pulseaudio", "memory", "cpu", "temperature#cpu", "backlight", "battery"],
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": " {:%A, %d %B %Y, %H:%M}",
"interval": 60
},
"backlight": {
"format": " {}%"
},
"cpu": {
"format": " {usage}%"
},
"memory": {
"format": " {}%",
"tooltip": false,
},
"temperature#cpu": {
"critical-threshold": 70,
"format": " {temperatureC}°C "
},
"custom/spotifyd": {
"format": " {}",
"return-type": "json",
"exec": "spdcon -o waybar",
"on-click": "spdcon -c PlayPause",
"on-click-right": "spdcon -c Next",
"on-click-middle": "spdcon -c Previous",
"interval": 2,
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": " {ipaddr}",
"format-ethernet": " {ipaddr}/{cidr}",
"format-disconnected": "⚠ Disconnected",
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": "{icon}  {volume}% {format_source}",
"format-bluetooth-muted": " {icon}  {format_source}",
"format-muted": " {format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
}