test
This commit is contained in:
parent
2fccbc9e19
commit
e39ecf0e3b
2 changed files with 4 additions and 4 deletions
|
@ -14,11 +14,11 @@
|
||||||
if [ $CLASS == "Running" ]; then
|
if [ $CLASS == "Running" ]; then
|
||||||
IP=`tailscale status --json | jq -r '.TailscaleIPs[0]'`
|
IP=`tailscale status --json | jq -r '.TailscaleIPs[0]'`
|
||||||
TOOLTIP="IP: $IP"
|
TOOLTIP="IP: $IP"
|
||||||
printf '{"class": "%s", "tooltip": "%s"}\n' "$CLASS" "$TOOLTIP"
|
printf '{"class": "%s", "tooltip": "%s", "alt": "%s"}\n' "$CLASS" "$TOOLTIP" "$CLASS"
|
||||||
fi
|
fi
|
||||||
if [ $CLASS == "Stopped" ]; then
|
if [ $CLASS == "Stopped" ]; then
|
||||||
TOOLTIP="Tailscale is not running"
|
TOOLTIP="Tailscale is not running"
|
||||||
printf '{"class": "%s", "tooltip": "%s"}\n' "$CLASS" "$TOOLTIP"
|
printf '{"class": "%s", "tooltip": "%s", "alt": "%s"}\n' "$CLASS" "$TOOLTIP" "$CLASS"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,8 +45,8 @@
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"Running": "",
|
"Running": " ",
|
||||||
"Stopped": ""
|
"Stopped": " ",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue