notes from mnlwldr

Thoughts about programming and other things I want to share

@mnlwldr on Twitter @mnlwldr on GitHub @mnlwldr on Mastodon

Moved my somafm ‘player’ to bashrc

_somafm() { 
   mpv $1 2> /dev/null | awk '/title/ { s = ""; for (i = 2; i <= NF; i++) s = s $i " "; cmd="(date +'%H:%M:%S')"; cmd | getline d; print d,"|",s; close(cmd) }' 
alias groovesalad='_somafm ""'
alias defcon='_somafm ""'
alias deepspaceone='_somafm ""'

Don’t forget to support

Tags: #bash #somafm

Have you written a response to this? Let me know the URL