feat(waybar): update
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
"memory",
|
||||
"pulseaudio",
|
||||
"clock",
|
||||
"custom/weather",
|
||||
"clock#simpleclock",
|
||||
"custom/weather",
|
||||
"custom/tailscale",
|
||||
"network",
|
||||
"battery",
|
||||
@@ -163,7 +163,7 @@
|
||||
"format": "",
|
||||
"format-icons": [" ", " ", " ", " "],
|
||||
"format-wifi": "{icon} {essid}",
|
||||
"format-ethernet": " {essid}",
|
||||
"format-ethernet": " ",
|
||||
"format-disconnected": " ",
|
||||
"tooltip-format": "{ifname}",
|
||||
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
echo '{"text":" Disconnected","class":"disconnected","tooltip":"Tailscale Disconnected"}'
|
||||
echo '{"text":" ","class":"disconnected","tooltip":"Tailscale Disconnected"}'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user