Added more comments.
This commit is contained in:
2
polybar/apikey.txt
Normal file
2
polybar/apikey.txt
Normal 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.
|
@ -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
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user