feat(waybar): update
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
"memory",
|
"memory",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"clock",
|
"clock",
|
||||||
"custom/weather",
|
|
||||||
"clock#simpleclock",
|
"clock#simpleclock",
|
||||||
|
"custom/weather",
|
||||||
"custom/tailscale",
|
"custom/tailscale",
|
||||||
"network",
|
"network",
|
||||||
"battery",
|
"battery",
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
"format": "",
|
"format": "",
|
||||||
"format-icons": [" ", " ", " ", " "],
|
"format-icons": [" ", " ", " ", " "],
|
||||||
"format-wifi": "{icon} {essid}",
|
"format-wifi": "{icon} {essid}",
|
||||||
"format-ethernet": " {essid}",
|
"format-ethernet": " ",
|
||||||
"format-disconnected": " ",
|
"format-disconnected": " ",
|
||||||
"tooltip-format": "{ifname}",
|
"tooltip-format": "{ifname}",
|
||||||
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
||||||
echo '{"text":" Connected","class":"connected","tooltip":"Tailscale Connected"}'
|
echo '{"text":" ","class":"connected","tooltip":"Tailscale Connected"}'
|
||||||
else
|
else
|
||||||
echo '{"text":" Disconnected","class":"disconnected","tooltip":"Tailscale Disconnected"}'
|
echo '{"text":" ","class":"disconnected","tooltip":"Tailscale Disconnected"}'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user