others/podcastplayer.sh

14 lines
385 B
Bash
Executable File

#!/bin/sh
## podcast player ##
PD="$HOME/Descargas/ytdl" # podcast dir
LP="/tmp/lastpodcast.ogg" # last podcast (in case of fire)
TARGET=$(find $PD -type f | grep .ogg | fzy) # give the target file
if [ -n "$TARGET" ]; then # if target
mpv "$TARGET" # play it
mv "$TARGET" "$LP" # move target to $LP
fi