power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
# Script: ticker-crypto
A script that displays current Cryptocurrency quotes like Bitcoin.
![ticker-crypto](screenshots/1.png)
## Dependencies
* `curl`
* `jq`
## Module
```ini
[module/ticker-crypto]
type = custom/script
exec = ~/polybar-scripts/ticker-crypto.sh
interval = 600
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View 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"