waybar: reformat config.jsonc (editor auto-format)

Trailing commas added throughout and modules-right expanded to one
key per line. Semantically identical — waybar's JSONC parser accepts
trailing commas.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-01 09:53:46 -07:00
parent c27f72a8a8
commit d4daad2071
+24 -15
View File
@@ -5,7 +5,16 @@
"modules-left": ["niri/workspaces"], "modules-left": ["niri/workspaces"],
"modules-center": ["custom/clock"], "modules-center": ["custom/clock"],
"modules-right": ["cpu", "temperature", "custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "tray"], "modules-right": [
"cpu",
"temperature",
"custom/power-profile",
"custom/fan-profile",
"pulseaudio",
"network",
"battery",
"tray",
],
"cpu": { "cpu": {
"format": " {usage}%", "format": " {usage}%",
"format-tooltip": "{usage}% total\n{icon0} {icon1} {icon2} {icon3}\n{icon4} {icon5} {icon6} {icon7}\n{icon8} {icon9} {icon10} {icon11}", "format-tooltip": "{usage}% total\n{icon0} {icon1} {icon2} {icon3}\n{icon4} {icon5} {icon6} {icon7}\n{icon8} {icon9} {icon10} {icon11}",
@@ -13,8 +22,8 @@
"interval": 3, "interval": 3,
"states": { "states": {
"warning": 60, "warning": 60,
"critical": 85 "critical": 85,
} },
}, },
"temperature": { "temperature": {
@@ -24,8 +33,8 @@
"format-critical": " {temperatureC}°C", "format-critical": " {temperatureC}°C",
"states": { "states": {
"warm": 60, "warm": 60,
"critical": 80 "critical": 80,
} },
}, },
"custom/power-profile": { "custom/power-profile": {
@@ -33,7 +42,7 @@
"return-type": "json", "return-type": "json",
"interval": 30, "interval": 30,
"signal": 8, "signal": 8,
"on-click": "~/.local/bin/power-profile --menu" "on-click": "~/.local/bin/power-profile --menu",
}, },
"custom/fan-profile": { "custom/fan-profile": {
@@ -41,40 +50,40 @@
"return-type": "json", "return-type": "json",
"interval": 5, "interval": 5,
"signal": 9, "signal": 9,
"on-click": "~/.local/bin/fan-profile --menu" "on-click": "~/.local/bin/fan-profile --menu",
}, },
"custom/clock": { "custom/clock": {
"exec": "date '+%a %b %d %-I:%M %p'", "exec": "date '+%a %b %d %-I:%M %p'",
"interval": 30, "interval": 30,
"format": "{}", "format": "{}",
"tooltip": false "tooltip": false,
}, },
"battery": { "battery": {
"format": "{capacity}% {icon}", "format": "{capacity}% {icon}",
"format-charging": "{capacity}% ", "format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-icons": ["","","","",""], "format-icons": ["", "", "", "", ""],
"states": { "states": {
"warning": 30, "warning": 30,
"critical": 15 "critical": 15,
} },
}, },
"tray": { "tray": {
"spacing": 8 "spacing": 8,
}, },
"network": { "network": {
"format-wifi": " {essid}", "format-wifi": " {essid}",
"format-ethernet": "󰈀", "format-ethernet": "󰈀",
"format-disconnected": "⚠", "format-disconnected": "⚠",
"on-click": "networkmanager_dmenu" "on-click": "networkmanager_dmenu",
}, },
"pulseaudio": { "pulseaudio": {
"format": " {volume}%", "format": " {volume}%",
"format-muted": "" "format-muted": "",
} },
} }