20 lines
385 B
Bash
Executable File
20 lines
385 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## podcast player ##
|
|
# podcastplayer.sh by @root_informatica.
|
|
|
|
# podcast dir.
|
|
PD="$HOME/Descargas/ytdl"
|
|
# last podcast played path. (in case of fire)
|
|
LP="/tmp/lastpodcast.ogg"
|
|
|
|
# select the target file.
|
|
TARGET=$(find $PD -type f | grep .ogg | fzfmenu.sh)
|
|
|
|
# if target.
|
|
if [ -n "$TARGET" ]; then
|
|
# play it and then move to LP.
|
|
mpv "$TARGET"
|
|
mv "$TARGET" "$LP"
|
|
fi
|