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
|
||||
IP=`tailscale status --json | jq -r '.TailscaleIPs[0]'`
|
||||
TOOLTIP="IP: $IP"
|
||||
printf '{"class": "%s", "tooltip": "%s"}\n' "$CLASS" "$TOOLTIP"
|
||||
printf '{"class": "%s", "tooltip": "%s", "alt": "%s"}\n' "$CLASS" "$TOOLTIP" "$CLASS"
|
||||
fi
|
||||
if [ $CLASS == "Stopped" ]; then
|
||||
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
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"format-icons": {
|
||||
"Running": "",
|
||||
"Stopped": ""
|
||||
"Running": " ",
|
||||
"Stopped": " ",
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue