waybar: Add solar power
This commit is contained in:
parent
4b171b5871
commit
23bb14473d
2 changed files with 8 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"height": 24,
|
"height": 24,
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["cpu", "memory", "tray"],
|
"modules-center": ["cpu", "memory", "custom/solar", "tray"],
|
||||||
"modules-right": ["custom/vpn", "custom/timew", "clock#time", "clock#date"],
|
"modules-right": ["custom/vpn", "custom/timew", "clock#time", "clock#date"],
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
|
|
@ -19,6 +19,12 @@
|
||||||
"format": " {:%H:%M}",
|
"format": " {:%H:%M}",
|
||||||
"timezone": "Europe/Berlin"
|
"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": {
|
"clock#date": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"format": " {:%d.%m.%Y}"
|
"format": " {:%d.%m.%Y}"
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ window#waybar.hidden {
|
||||||
#backlight,
|
#backlight,
|
||||||
#network,
|
#network,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
|
#custom-solar,
|
||||||
#custom-media,
|
#custom-media,
|
||||||
#custom-vpn,
|
#custom-vpn,
|
||||||
#custom-timew,
|
#custom-timew,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue