sys-config/modules/home/niri/waybar.json
2024-12-29 23:25:45 +01:00

63 lines
1.2 KiB
JSON

{
"layer": "top",
"position": "top",
"spacing": 10,
"modules-left": ["niri/workspaces"],
"modules-center": ["clock#1", "clock#2", "clock#3"],
"modules-right": ["pulseaudio", "memory", "cpu", "battery", "disk", "tray"],
"sway/workspaces": {
"disable-scroll": true,
"format": "{name}"
},
"clock#1": {
"format": "{:%a}",
"tooltip": false
},
"clock#2": {
"format": "{:%H:%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%d-%m}",
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-bluetooth": "{icon} {volume}% ",
"format-muted": "",
"format-icons": {
"headphones": "",
"default": ["", ""]
},
"scroll-step": 5,
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pwvucontrol",
"reverse-scrolling": true
},
"memory": {
"interval": 5,
"format": "Mem {}%"
},
"cpu": {
"interval": 5,
"format": "CPU {usage:2}%"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""]
},
"disk": {
"interval": 5,
"format": "Disk {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 22,
"spacing": 6
}
}