New files. Updated dwmbar

This commit is contained in:
Linux User
2022-10-02 18:06:02 +00:00
parent f23656f6f2
commit c9216a9ae9
11 changed files with 185 additions and 10 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=ETHUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ \$$price ^d^"