diff --git a/de/home/.config/eww/modules/home/mcstatus.yuck b/de/home/.config/eww/modules/home/mcstatus.yuck index 67256c2..0865bb6 100644 --- a/de/home/.config/eww/modules/home/mcstatus.yuck +++ b/de/home/.config/eww/modules/home/mcstatus.yuck @@ -1,4 +1,4 @@ -(defpoll servers_status :initial '{"online": true,"kind":"Java","status":{"players":{"online":0,"max":0,"sample":null},"version":{"name":"version","protocol":0},"motd":"Message of the day","latency":0,"icon":""}}' +(defpoll servers_status :initial '[{"online": true,"kind":"Java","status":{"players":{"online":0,"max":0,"sample":null},"version":{"name":"version","protocol":0},"motd":"Message of the day","latency":0,"icon":""},"address":"ip.addre.ss"}]' :interval "21600s" 'scripts/home/mcstatus') @@ -15,9 +15,17 @@ (defwidget mcstatus [json] (box + :orientation 'v' (for server in json - (label - :text "${server.address}" + (box + :orientation 'v' + (label + :text "${server.address}" + ) + (label + :text "${replace(server.status.motd,'ยง.','')}" + :truncate true + ) ) ) )