f70d7e259d0eec21bb62c5d10a380349637091dc

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Show only status of tailscale in waybar

Diff

 1diff --git a/dot_config/waybar/config-bottom.jsonc.tmpl b/dot_config/waybar/config-bottom.jsonc.tmpl
 2index 926b678d0505409b46354d7a1037f4ff8e917273..cdf9c64c1b0ad51cc3e9418dc8896df24b62e15d 100644
 3--- a/dot_config/waybar/config-bottom.jsonc.tmpl
 4+++ b/dot_config/waybar/config-bottom.jsonc.tmpl
 5@@ -6,7 +6,7 @@
 6 	"reload_style_on_change": true,
 7 	"modules-right": [
 8 		"custom/arrow_left_end_alt",
 9-		"network#tailscale",
10+		"custom/tailscale",
11 		"custom/arrow_left_alt",
12 		"network",
13 		"custom/arrow_left",
14@@ -85,11 +85,9 @@
15 		"format-alt": "󰩠 {ipaddr}/{cidr}",
16 		"tooltip": false
17 	},
18-	"network#tailscale": {
19+	"custom/tailscale": {
20+		"exec": "tailscale status --json 2>/dev/null | jq -r 'if .BackendState == \"Running\" then \" 󰖂 \" else \" 󰲜 \" end'",
21 		"interval": 5,
22-		"interface": "tailscale0",
23-		"format": "󰖂",
24-		"format-disconnected": "󰲜",
25 		"tooltip": false
26 	},
27 	"custom/arrow_left": {
28diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
29index 37254c44533e687718157540f3a9630ceeb05432..3ab196194c4165746cfacd1c0e168f195971977b 100644
30--- a/dot_config/waybar/style.css
31+++ b/dot_config/waybar/style.css
32@@ -91,7 +91,7 @@
33 
34 #backlight,
35 #memory,
36-#network.tailscale,
37+#custom-tailscale,
38 #temperature,
39 #language,
40 #clock.time,