8ab320d58f0cfa342dadb59b42cb978a70f8d436

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

Message

Add ETH price to waybar

Diff

 1diff --git a/dot_config/waybar/config-top.jsonc.tmpl b/dot_config/waybar/config-top.jsonc.tmpl
 2index 205249f350f7381bfb00aad5b0b7cd1de04bfda2..3e45a93200ec67d2cfac8cabeda04597a6f1d333 100644
 3--- a/dot_config/waybar/config-top.jsonc.tmpl
 4+++ b/dot_config/waybar/config-top.jsonc.tmpl
 5@@ -7,8 +7,10 @@
 6 		"hyprland/workspaces"
 7 	],
 8 	"modules-right": [
 9-		"custom/arrow_left_end",
10+		"custom/arrow_left_end_alt",
11 		"mpris",
12+		"custom/arrow_left_alt",
13+		"custom/crypto",
14 		"custom/arrow_left",
15 		"pulseaudio#mic",
16 		"custom/arrow_left_alt",
17@@ -235,6 +237,13 @@
18 		"on-scroll-up": "pactl set-source-volume @DEFAULT_SOURCE@ +2%",
19 		"on-scroll-down": "pactl set-source-volume @DEFAULT_SOURCE@ -2%"
20 	},
21+	"custom/crypto": {
22+		"format": "{}",
23+		"interval": 300,
24+		"return-type": "json",
25+		"exec": "waybar-crypto",
26+		"exec-if": "ping pro-api.coinmarketcap.com -c1"
27+	},
28 	"custom/arrow_left": {
29 		"format": "",
30 		"tooltip": false
31diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
32index 585f30c1be36492b6bec8a3f26863d7ca7e5dad7..65ed00a8ec75027db52e6e06f00369a424c2030f 100644
33--- a/dot_config/waybar/style.css
34+++ b/dot_config/waybar/style.css
35@@ -69,6 +69,7 @@
36 #idle_inhibitor,
37 #disk,
38 #user,
39+#custom-crypto,
40 #mpris {
41 	padding-left: 8pt;
42 	padding-right: 8pt;
43@@ -81,7 +82,7 @@
44 #privacy,
45 #clock.date,
46 #tray,
47-#mpris,
48+#custom-crypto,
49 #pulseaudio {
50 	background: @bg;
51 }
52@@ -92,6 +93,7 @@
53 #language,
54 #clock.time,
55 #network.tailscale,
56+#mpris,
57 #pulseaudio.mic {
58 	background: @bg_alt;
59 }