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
Published at
2023-04-19 01:26:56Event JSON
{
"id": "3d5de45102fe008d52b3947e381724fc71886575a5d2c12b64726e7e4d066d08",
"pubkey": "727454ab043b983fb576c654fcfb0aa9659b298e8fde751d9f235b964a795f86",
"created_at": 1681867616,
"kind": 1,
"tags": [
[
"t",
"fzf"
],
[
"mostr",
"https://pleroma.atyh.cc/objects/20956a37-d8bb-48c9-95f9-61ef3dc7b9ab"
]
],
"content": "Its amazing to me how useful this little script is, and all the things you can do with it.\nThis 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...\n\n#!/bin/sh\n#\n#fzf music selector\n#\nFILES=${1:-\"/home/atyh/music\"}\nPLAYER='mpv --no-video'\nCHOICE=$(ls \"${FILES}\" | fzf -i --border=sharp --border-label=\"╢ MUSIC ╟\")\n#\nif [ $CHOICE ]; then\n $PLAYER ${FILES}/${CHOICE}\nfi",
"sig": "6579475655507f25a926fc6943c2f8416540cdc27504e85fca39d1d3fdbf31e2507e9450ed36525712b022436917af6f81b88e1b59e69a6ab8b51576012379ac"
}