Added more comments.

This commit is contained in:
Salyrus
2021-12-16 11:06:26 +01:00
parent 474d1e65dc
commit 9558da105a
12 changed files with 250 additions and 167 deletions

2
polybar/apikey.txt Normal file
View File

@ -0,0 +1,2 @@
# Visit https://developers.coinranking.com/create-account to make an account and generate a free API key.
# ADD YOUR API KEY ON A NEW LINE BELOW HERE.

View File

@ -1,3 +1,13 @@
#
# ________
# | _____ \
# | | _/ / Pim Nelissen
# | | /__/ p1m@disroot.org
# | | https://pim.wtf/
# \_|
#
# Polybar configuation file.
[colors]
background = #ee0c181d
foreground = #ccffffff
@ -32,7 +42,7 @@ font-2 = coins;3
modules-left = bspwm
modules-right = xbps-updates pulseaudio-control brightnessctl wlan wireless-network battery date
modules-center = crypto
# modules-center = crypto
fixed-center = true
tray-position = right

View File

@ -29,12 +29,6 @@ else:
apikey = [line for line in fp.readlines() if not line.startswith("#")][0]
apikey = str(apikey).replace("\n", "")
unicode_dict = {}
with open(f"{path}/scripts/coins.svg", "r", encoding="utf-8") as icons:
for line in icons:
unicode, coin = line.strip().split(":")
unicode_dict[unicode] = coin
if not (args.coins and args.base):
parser.print_help()
parser.exit()