New files. Updated dwmbar
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=XMRUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ \$$price ^d^"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=BTCUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ \$$price ^d^"
|
||||
Executable
+9
@@ -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^"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=LTCUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ \$$price ^d^"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=DOGEUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ DOGE ^c$COLOR1^^b$COLOR2^ \$$price ^d^"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=ETCUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ ETC ^c$COLOR1^^b$COLOR2^ \$$price ^d^"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ USDT ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
ut=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTTRY' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
ur=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
price=$(awk "BEGIN{print $ur/$ut}")
|
||||
price=$(printf %.2f "$price")
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
uu=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTUAH' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
ur=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
|
||||
price=$(awk "BEGIN{print $ur/$uu}")
|
||||
price=$(printf %.2f "$price")
|
||||
|
||||
echo "^b$COLOR1^^c$COLOR2^ ₴ ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
CITY="Tyumen"
|
||||
|
||||
COLOR1="#AAAAAA"
|
||||
COLOR2="#444444"
|
||||
|
||||
|
||||
icon=$(curl -s "wttr.in/$CITY?format=%c")
|
||||
icon=$(echo $icon | tr -d ' ')
|
||||
|
||||
temp=$(curl -s "wttr.in/$CITY?format=%t")
|
||||
|
||||
wind=$(curl -s "wttr.in/$CITY?format=%w")
|
||||
|
||||
|
||||
echo "^b$COLOR2^^c$COLOR1^ $wind ^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $temp ^d^"
|
||||
Reference in New Issue
Block a user