mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-07-01 22:35:59 +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"
|
"--follow"
|
||||||
"metadata"
|
"metadata"
|
||||||
"--format"
|
"--format"
|
||||||
''
|
"status|string|{{status}}\nartist|string|{{artist}}\ntitle|string|{{title}}\n"
|
||||||
status|string|{{status}}
|
|
||||||
artist|string|{{artist}}
|
|
||||||
title|string|{{title}}''
|
|
||||||
];
|
];
|
||||||
content.map.conditions = {
|
content.map.conditions = {
|
||||||
"status == Playing && artist != \"\"" = {
|
"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
|
inception = 2024 # 30 nov 24 21:37
|
||||||
now = datetime.now().timetuple()
|
now = datetime.now().timetuple()
|
||||||
day = now.tm_yday
|
day = now.tm_yday - 1
|
||||||
|
|
||||||
month = day // 14
|
month = day // 14
|
||||||
if month >= 26:
|
if month >= 26:
|
||||||
|
@ -16,7 +16,7 @@ if month >= 26:
|
||||||
else:
|
else:
|
||||||
month = months[month]
|
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:
|
try:
|
||||||
_ = argv.index("-y")
|
_ = argv.index("-y")
|
||||||
print("date|string|" + out + "\n")
|
print("date|string|" + out + "\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue