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,19 @@
# Script: ticker-forex
A small script that displays current exchange rates.
## Dependencies
* `curl`
* `jq`
## Module
```ini
[module/ticker-forex]
type = custom/script
exec = ~/polybar-scripts/ticker-forex.sh
interval = 600
```

View File

@@ -0,0 +1,12 @@
#!/bin/sh
API="https://api.exchangeratesapi.io/latest"
CURRENCY_BASE="EUR"
CURRENCY_QUOTE="PLN"
quote=$(curl -sf "$API?base=$CURRENCY_BASE&symbols=$CURRENCY_QUOTE" | jq -r ".rates.$CURRENCY_QUOTE")
quote=$(LANG=C printf "%.2f" "$quote")
echo "# $quote"