added price module to waybar

This commit is contained in:
Bryan Ramos 2024-07-28 21:11:55 -04:00
parent 9fe0dece82
commit 626596499c
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 9 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"layer": "top",
"position": "top",
"output": "HDMI-A-1",
"modules-left": [ "custom/logo", "clock", "custom/weather", "custom/bitcoin", "memory", "cpu" ],
"modules-left": [ "custom/logo", "clock", "custom/weather", "custom/blockheight", "custom/price", "memory", "cpu" ],
"modules-center": [ "hyprland/workspaces" ],
"modules-right": [ "tray", "pulseaudio", "network" ],
"reload_style_on_change":true,
@ -37,13 +37,20 @@
"interval": 10,
},
"custom/bitcoin": {
"custom/blockheight": {
"format": "<span color='#ef8e19'>󰠓 </span><span color='#ffffff'>{}</span>",
"interval": 30,
"exec": "~/.config/waybar/scripts/getBlock",
"on-click": "xdg-open https://www.mempool.space",
},
"custom/price": {
"format": "<span color='#00ff00'> $</span><span color='#ffffff'>{}</span>",
"interval": 10,
"exec": "~/.config/waybar/scripts/getPrice",
"on-click": "xdg-open https://www.coinbase.com/price/bitcoin",
},
"clock": {
"format": "{:%I:%M:%S %p}",
"interval":1,