This commit is contained in:
Daniel Bauer
2018-09-14 11:56:02 +02:00
parent e0b529b91a
commit a807f5eb1e
45 changed files with 53 additions and 14 deletions

22
.config/i3/scripts/song.awk Executable file
View File

@@ -0,0 +1,22 @@
/string *"xesam:artist/{
while (1) {
getline line
if (line ~ /string "/) {
sub(/.*string "/, "artist:", line)
sub(/".*$/, "", line)
print line
break
}
}
}
/string *"xesam:title/{
while(1) {
getline line
if (line ~ /string "/) {
sub(/.*string "/, "title:", line)
sub(/".*$/, "", line)
print line
break
}
}
}