format configs

This commit is contained in:
2025-10-20 03:23:25 +08:00
parent a752e3d51d
commit c7fb195dce
2 changed files with 43 additions and 15 deletions

View File

@@ -1,8 +1,21 @@
{ {
"layer": "top", "layer": "top",
"modules-left": ["niri/workspaces", "niri/window"], "modules-left": [
"modules-center": ["clock"], "niri/workspaces",
"modules-right": ["mpris", "tray", "battery", "cpu", "memory", "temperature", "pulseaudio"], "niri/window"
],
"modules-center": [
"clock"
],
"modules-right": [
"mpris",
"tray",
"battery",
"cpu",
"memory",
"temperature",
"pulseaudio"
],
"sway/scratchpad": { "sway/scratchpad": {
"format": "󱂬 {count}" "format": "󱂬 {count}"
}, },
@@ -51,7 +64,11 @@
"critical-threshold": 80, "critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}", // "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""] "format-icons": [
"",
"",
""
]
}, },
"memory": { "memory": {
"format": " {percentage}%", "format": " {percentage}%",
@@ -64,7 +81,18 @@
"battery": { "battery": {
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}% ", "format-charging": "{icon} {capacity}% ",
"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], "format-icons": [
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
],
"interval": 1 "interval": 1
} }
} }