mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-11 14:05:29 +00:00
update from laptop
This commit is contained in:
22
i3/scripts/song.awk
Executable file
22
i3/scripts/song.awk
Executable 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user