Swap i3blocks with polybar
This commit is contained in:
8
polybar/scripts/bitcoin.py
Executable file
8
polybar/scripts/bitcoin.py
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
|
||||
r = requests.get('https://blockchain.info/ticker');
|
||||
ticker = r.json()
|
||||
|
||||
print('£%.2f' % float(ticker['GBP']['sell']))
|
||||
Reference in New Issue
Block a user