This commit is contained in:
iFargle 2023-08-28 20:52:07 +09:00
parent 2fccbc9e19
commit e39ecf0e3b
2 changed files with 4 additions and 4 deletions

View file

@ -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
'';
};

View file

@ -45,8 +45,8 @@
"return-type": "json",
"interval": 5,
"format-icons": {
"Running": "󰌆",
"Stopped": "󰌊"
"Running": "󰌆 ",
"Stopped": "󰌊 ",
}
},