z_mirror/dotfiles
git clone https://git.raiguard.me/z_mirror/dotfiles
9b077e4
noctalia
1#!/usr/bin/env sh 2 3while true; do 4 title=$(playerctl metadata | awk '/:title/ {print substr($0, index($0,$3))}') > /tmp/media.txt 5 if [ -n "$title" ]; then 6 artist=$(playerctl metadata | awk '/:artist/ {print substr($0, index($0,$3))}') 7 echo "♫: $artist - $title" > /tmp/media.txt 8 fi 9 echo "refreshed" 10 sleep 10 11done