Add new fonts to nerdfont-installer; add dayofweek script

This commit is contained in:
Jeffrey Serio 2023-11-06 12:35:14 -06:00
parent 57a2e1ab03
commit f3f4defed6
2 changed files with 22 additions and 0 deletions

19
dayofweek Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env python
#
# Usage: dayofweek <year> <month> <day>
#
# Example: dayofweek 2003 11 6
import sys
from datetime import datetime
if __name__ == "__main__":
if len(sys.argv) != 4:
print("Usage: dayofweek <year> <month> <day>")
exit(1)
else:
print(
datetime(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3])).strftime(
"%A"
)
)

View File

@ -68,6 +68,7 @@ nf_array=(
DaddyTimeMono DaddyTimeMono
DejaVuSansMono DejaVuSansMono
DroidSansMono DroidSansMono
EnvyCodeR
FantasqueSansMono FantasqueSansMono
FiraCode FiraCode
FiraMono FiraMono
@ -82,10 +83,12 @@ nf_array=(
Inconsolata Inconsolata
InconsolataGo InconsolataGo
InconsolataLGC InconsolataLGC
IntelOneMono
Iosevka Iosevka
JetBrainsMono JetBrainsMono
Lekton Lekton
LiberationMono LiberationMono
Lilex
Meslo Meslo
Monofur Monofur
Monoid Monoid