nixcfg/modules/nixos/desktop/addons/waybar/config
2024-01-11 10:31:04 +00:00

120 lines
2.3 KiB
Plaintext

{
"layer": "top",
"modules-left": [
"sway/workspaces",
"custom/media",
"sway/mode"
],
"modules-center": [],
"modules-right": [
"network",
"pulseaudio",
"cpu",
"battery",
"tray",
"clock#date",
"clock#time"
],
"sway/mode": {
"format": "{}"
},
"custom/media": {
"format": "{icon}",
"return-type": "json",
"format-icons": {
"Playing": "",
"Paused": "ﳌ"
},
"max-length": 70,
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}\", \"tooltip\": \"{{playerName}}: {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"on-click": "playerctl play-pause"
},
"mpd": {
"tooltip": false,
"format": "{stateIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
"format-disconnected": "ﳌ",
"format-stopped": "",
"state-icons": {
"playing": "",
"paused": ""
}
},
"pulseaudio": {
"tooltip": true,
"tooltip-format": "{volume}%",
"scroll-step": 5,
"format": "{icon}",
"format-bluetooth": "",
"format-muted": "婢",
"format-icons": {
"default": [
"奄",
"奔",
"墳"
]
},
"on-click": "gnome-control-center sound"
},
"network": {
"tooltip": true,
"format-wifi": " ",
"tooltip-format-wifi": "{essid} @ {signalStrength}%",
"format-ethernet": "",
"on-click": "gnome-control-center wifi"
},
"temperature": {
"tooltip": true,
"tooltip-format": "{temperatureC} 糖",
"critical-threshold": 70,
"format-icons": [
"",
"",
""
],
"format": "{icon}"
},
"cpu": {
"tooltip": true,
"format": "",
"states": {
"heavy": 70,
"full": 90
}
},
"memory": {
"tooltip": true,
"tooltip-format": "{used:0.1f}G/{total:0.1f}G",
"format": "",
"states": {
"heavy": 70,
"full": 90
}
},
"battery": {
"bat": "BAT1",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-critical": "",
"format-icons": {
"default": ["", "", "", "", "", "", "", "", "", ""],
"charging": ["", "", "", "", "", "", ""],
"not": "",
"plugged": ""
}
},
"tray": {
"icon-size": 16,
"spacing": 10
},
"clock#date": {
"format": "{:%a, %b %d}"
},
"clock#time": {
"format": "{:%I:%M %p}"
}
}