This commit is contained in:
bauer
2017-10-24 15:53:59 +02:00
parent b33f5482f3
commit faf5196ff1
25 changed files with 5365 additions and 0 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
}
}
}