94 lines
2 KiB
JSON
94 lines
2 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 30,
|
|
"spacing": 4,
|
|
"modules-left": [
|
|
"niri/workspaces"
|
|
],
|
|
"modules-center": [
|
|
"niri/window"
|
|
],
|
|
"modules-right": [
|
|
|
|
% for iface in host.get('wireless', []) + host.get('ethernet', []):
|
|
"network#${iface}",
|
|
% endfor
|
|
|
|
"wireplumber",
|
|
|
|
% for disk in host.get('disks', ['/']):
|
|
"disk#${disk}",
|
|
% endfor
|
|
|
|
"cpu",
|
|
"memory",
|
|
|
|
% if 'temperature-path' in host:
|
|
"temperature",
|
|
% endif
|
|
|
|
"clock#utc",
|
|
"clock#local"
|
|
],
|
|
|
|
% for iface in host.get('wireless', []):
|
|
"network#${iface}": {
|
|
"interface": "${iface}",
|
|
"format": "${iface} {ipaddr} {essid} {signalStrength}",
|
|
"format-disconnected": "${iface} down",
|
|
"tooltip": false
|
|
},
|
|
% endfor
|
|
|
|
% for iface in host.get('ethernet', []):
|
|
"network#${iface}": {
|
|
"interface": "${iface}",
|
|
"format": "${iface} {ipaddr}",
|
|
"format-disconnected": "${iface} down",
|
|
"tooltip": false
|
|
},
|
|
% endfor
|
|
|
|
"wireplumber": {
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": "\uf6a9 {volume}%",
|
|
"format-icons": ["\uf026", "\uf027", "\uf028"]
|
|
},
|
|
|
|
% for disk in host.get('disks', ['/']):
|
|
"disk#${disk}": {
|
|
"format": "${disk} {free}",
|
|
"tooltip-format": "{used} / {total} ({percentage_used}%)"
|
|
},
|
|
% endfor
|
|
|
|
"cpu": {
|
|
"format": "\uf2db {usage}%",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": "\uf538 {percentage}%",
|
|
"tooltip-format": "{used}GiB / {total}GiB"
|
|
},
|
|
|
|
% if 'temperature-path' in host:
|
|
"temperature": {
|
|
"format": "{temperatureC}°C",
|
|
"hwmon-path": "${host['temperature-path']}"
|
|
},
|
|
% endif
|
|
|
|
"clock#utc": {
|
|
"interval": 5,
|
|
"format": "{:%Y-%m-%d %H:%M:%S}",
|
|
"timezone": "UTC",
|
|
"tooltip": false
|
|
},
|
|
"clock#local": {
|
|
"interval": 5,
|
|
"format": "{:%H:%M}",
|
|
"tooltip": false
|
|
}
|
|
}
|