46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
{
|
||
"layer": "bottom",
|
||
"position": "top",
|
||
"height": 24,
|
||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||
"modules-center": ["cpu", "memory", "custom/solar", "tray"],
|
||
"modules-right": ["custom/vpn", "custom/timew", "clock#time", "clock#date"],
|
||
"sway/mode": {
|
||
"format": "<span style=\"italic\">{}</span>"
|
||
},
|
||
"cpu": {
|
||
"format": " {usage}%"
|
||
},
|
||
"memory": {
|
||
"format": " {used:0.1f}G/{total:0.1f}G ({percentage}%)"
|
||
},
|
||
"clock#time": {
|
||
"interval": 20,
|
||
"format": " {:%H:%M}",
|
||
"timezone": "Europe/Berlin"
|
||
},
|
||
"custom/solar": {
|
||
"format": " {}",
|
||
"max-length": 20,
|
||
"interval": 20,
|
||
"exec": "curl http://dtu/api/livedata/status | jq -j '(.total.Power.v|round), \" \", .total.Power.u, \", \", .total.YieldDay.v, \" \", .total.YieldDay.u'"
|
||
},
|
||
"clock#date": {
|
||
"interval": 60,
|
||
"format": " {:%d.%m.%Y}"
|
||
},
|
||
"custom/vpn": {
|
||
"format": " {}",
|
||
"max-length": 60,
|
||
"escape": true,
|
||
"interval": 60,
|
||
"exec": "nmcli -f name,type --terse connection show --active | grep vpn | cut -d : -f 1 | awk -v d=', ' '{s=(NR==1?s:s d)$0}END{print s}' -"
|
||
},
|
||
"custom/timew": {
|
||
"format": " {}",
|
||
"max-length": 40,
|
||
"escape": true,
|
||
"interval": 60,
|
||
"exec": "timew | grep Tracking | cut -d ' ' -f 2- | tr -d '\"'"
|
||
}
|
||
}
|