mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-03-13 07:53:25 +00:00
~
This commit is contained in:
parent
eb7e066fc9
commit
1699964fe5
2 changed files with 3 additions and 6 deletions
|
@ -24,10 +24,7 @@
|
|||
"--follow"
|
||||
"metadata"
|
||||
"--format"
|
||||
''
|
||||
status|string|{{status}}
|
||||
artist|string|{{artist}}
|
||||
title|string|{{title}}''
|
||||
"status|string|{{status}}\nartist|string|{{artist}}\ntitle|string|{{title}}\n"
|
||||
];
|
||||
content.map.conditions = {
|
||||
"status == Playing && artist != \"\"" = {
|
||||
|
|
|
@ -8,7 +8,7 @@ months = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N",
|
|||
|
||||
inception = 2024 # 30 nov 24 21:37
|
||||
now = datetime.now().timetuple()
|
||||
day = now.tm_yday
|
||||
day = now.tm_yday - 1
|
||||
|
||||
month = day // 14
|
||||
if month >= 26:
|
||||
|
@ -16,7 +16,7 @@ if month >= 26:
|
|||
else:
|
||||
month = months[month]
|
||||
|
||||
out = str(now.tm_year - inception).zfill(2) + month + str(day % 14 - 1).zfill(2)
|
||||
out = str(now.tm_year - inception).zfill(2) + month + str(day % 14).zfill(2)
|
||||
try:
|
||||
_ = argv.index("-y")
|
||||
print("date|string|" + out + "\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue