power menu, redshift, polybar
This commit is contained in:
21
.config/polybar/scripts/ticker-crypto/README.md
Normal file
21
.config/polybar/scripts/ticker-crypto/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Script: ticker-crypto
|
||||
|
||||
A script that displays current Cryptocurrency quotes like Bitcoin.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
* `jq`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/ticker-crypto]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/ticker-crypto.sh
|
||||
interval = 600
|
||||
```
|
||||
BIN
.config/polybar/scripts/ticker-crypto/screenshots/1.png
Normal file
BIN
.config/polybar/scripts/ticker-crypto/screenshots/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
8
.config/polybar/scripts/ticker-crypto/ticker-crypto.sh
Normal file
8
.config/polybar/scripts/ticker-crypto/ticker-crypto.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
API="https://api.kraken.com/0/public/Ticker"
|
||||
|
||||
quote=$(curl -sf $API?pair=BTCEUR | jq -r ".result.XXBTZEUR.c[0]")
|
||||
quote=$(LANG=C printf "%.2f" "$quote")
|
||||
|
||||
echo "#1 $quote €"
|
||||
Reference in New Issue
Block a user