2022-12-11 09:26:14 +03:00
|
|
|
{
|
2023-07-25 10:21:12 +03:00
|
|
|
"height": 48,
|
2022-12-11 09:26:14 +03:00
|
|
|
"position": "top",
|
|
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
|
|
"modules-center": [],
|
2023-06-10 15:23:06 +03:00
|
|
|
"modules-right": ["tray", "idle_inhibitor", "cpu", "memory", "wireplumber", "battery", "sway/language", "clock"],
|
2022-12-11 09:26:14 +03:00
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
2023-01-07 17:05:17 +03:00
|
|
|
"activated": "Don't idle",
|
2022-12-31 14:40:47 +03:00
|
|
|
"deactivated": "Idling"
|
2022-12-11 09:26:14 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
2023-06-10 15:23:06 +03:00
|
|
|
"format": "{:%H:%M:%S %Y-%m-%d}",
|
2022-12-11 09:26:14 +03:00
|
|
|
"interval": 1
|
|
|
|
},
|
2023-06-10 15:23:06 +03:00
|
|
|
"wireplumber": {
|
2022-12-11 09:26:14 +03:00
|
|
|
"scroll-step": 1,
|
2023-06-10 15:23:06 +03:00
|
|
|
"format": "Vol: {volume}%",
|
|
|
|
"format-muted": "Vol: muted",
|
2022-12-11 09:26:14 +03:00
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"format": "CPU: {usage}%",
|
|
|
|
"interval": 1
|
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "RAM: {}%",
|
|
|
|
"interval": 1
|
|
|
|
},
|
2022-12-31 14:40:47 +03:00
|
|
|
"custom/absclock": {
|
|
|
|
"exec": "date +%s",
|
|
|
|
"return-type": "{}",
|
|
|
|
"format": "{}",
|
|
|
|
"interval": 1
|
|
|
|
},
|
2022-12-11 09:26:14 +03:00
|
|
|
"custom/loadavg": {
|
|
|
|
"exec": "cat /proc/loadavg | head -c 14",
|
|
|
|
"return-type": "{}",
|
|
|
|
"format": "Load average: {}",
|
|
|
|
"interval": 1
|
|
|
|
},
|
|
|
|
"custom/uptime": {
|
|
|
|
"exec": "uptime -p | sed 's/up //g' -",
|
|
|
|
"return-type": "{}",
|
|
|
|
"format": "Uptime: {}",
|
|
|
|
"interval": 60,
|
|
|
|
},
|
|
|
|
"temperature": {
|
|
|
|
"format": "Temperature: {temperatureC}°C",
|
|
|
|
"interval": 1
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"format": "Battery: {capacity}%",
|
|
|
|
"format-charging": "Battery: {capacity}% (charging)",
|
|
|
|
"format-plugged": "Battery: {capacity}% (plugged)",
|
|
|
|
"interval": 10
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format": "Network via {ifname}",
|
|
|
|
"tooltip-format": "{ipaddr}/{cidr}",
|
|
|
|
"format-linked": "Network (No IP) via {ifname}",
|
|
|
|
"format-disconnected": "No network",
|
2022-12-31 14:40:47 +03:00
|
|
|
"on-click": "nm-connection-editor"
|
2022-12-11 09:26:14 +03:00
|
|
|
},
|
|
|
|
}
|