New files. Updated dwmbar
This commit is contained in:
9
.local/scripts/bbl/0010_30_XMRUSDT
Executable file
9
.local/scripts/bbl/0010_30_XMRUSDT
Executable file
@ -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^"
|
9
.local/scripts/bbl/0020_30_BTCUSDT
Executable file
9
.local/scripts/bbl/0020_30_BTCUSDT
Executable file
@ -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^"
|
9
.local/scripts/bbl/0030_30_ETHUSDT
Executable file
9
.local/scripts/bbl/0030_30_ETHUSDT
Executable 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^"
|
9
.local/scripts/bbl/0040_30_LTCUSDT
Executable file
9
.local/scripts/bbl/0040_30_LTCUSDT
Executable file
@ -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^"
|
9
.local/scripts/bbl/0050_30_DOGEUSDT
Executable file
9
.local/scripts/bbl/0050_30_DOGEUSDT
Executable file
@ -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^"
|
9
.local/scripts/bbl/0060_30_ETCUSDT
Executable file
9
.local/scripts/bbl/0060_30_ETCUSDT
Executable file
@ -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^"
|
9
.local/scripts/bbl/0200_30_USDTRUB
Executable file
9
.local/scripts/bbl/0200_30_USDTRUB
Executable file
@ -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^"
|
12
.local/scripts/bbl/0210_30_TRYRUB
Executable file
12
.local/scripts/bbl/0210_30_TRYRUB
Executable file
@ -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^"
|
12
.local/scripts/bbl/0220_30_UAHRUB
Executable file
12
.local/scripts/bbl/0220_30_UAHRUB
Executable file
@ -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^"
|
17
.local/scripts/bbr/0010_300_weather
Executable file
17
.local/scripts/bbr/0010_300_weather
Executable file
@ -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