update from laptop

This commit is contained in:
Daniel Bauer
2018-09-04 14:39:42 +02:00
parent 73be223cd9
commit a4643f9565
37 changed files with 825 additions and 67 deletions

22
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
}
}
}