fix: declare 'waybar' config and add it to 'niri' desktop

This commit is contained in:
2025-12-03 23:35:59 +01:00
parent dbad023043
commit 683e6e4d10
4 changed files with 88 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
[
{
"height": 16,
"spacing": 4,
"modules-left": ["niri/workspaces"],
"modules-center": ["sway/window"],
"modules-right": ["battery", "clock"],
"clock": {
"format": "W{:%V %d %b %H:%M}",
"tooltip-format": "{calendar}",
"format-alt": "{:%Y-%m-%d %H:%M:%S}",
},
"battery": {
"states": {
"good": 80,
"warning": 20,
"critical": 10,
},
"format": "{capacity}%",
"format-charging": "↑{capacity}%",
"format-plugged": "{capacity}%",
"format-alt": "{time}",
},
},
]