atyh on Nostr: Its amazing to me how useful this little script is, and all the things you can do ...
Its amazing to me how useful this little script is, and all the things you can do with it.
This version is a music file searcher and opener. I made another one to play an old radio show, and shutdown the machine after its finished...
#!/bin/sh
#
#fzf music selector
#
FILES=${1:-"/home/atyh/music"}
PLAYER='mpv --no-video'
CHOICE=$(ls "${FILES}" | fzf -i --border=sharp --border-label="╢ MUSIC ╟")
#
if [ $CHOICE ]; then
$PLAYER ${FILES}/${CHOICE}
fi
This version is a music file searcher and opener. I made another one to play an old radio show, and shutdown the machine after its finished...
#!/bin/sh
#
#fzf music selector
#
FILES=${1:-"/home/atyh/music"}
PLAYER='mpv --no-video'
CHOICE=$(ls "${FILES}" | fzf -i --border=sharp --border-label="╢ MUSIC ╟")
#
if [ $CHOICE ]; then
$PLAYER ${FILES}/${CHOICE}
fi