commit 0917a7850cef194ce7c7ff8d8d01a34a238628f0
parent c9aeeb561d8585f0fb9816c7c953d3aede0fc98f
Author: regexghost <dev@regexghost.com>
Date: Mon, 17 Aug 2026 18:32:43 +0100
podcast-play.sh and alias
Diffstat:
3 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc
@@ -37,6 +37,7 @@ alias q='exit'
alias pve='pipe-viewer'
alias vp='vid-play' # normal vids
alias vps='vid-play -s' # shorts
+alias pd='podcast-play' # podcasts
# I originally used this on the Pi, because the storage being slow meant newsraft
# lagged when accessing the database
diff --git a/terminal-scripts/Makefile b/terminal-scripts/Makefile
@@ -44,3 +44,4 @@ normal:
cp calendar.sh ${BIN}/calendar
cp date-time.sh ${BIN}/date-time
cp qssh.sh ${BIN}/qssh
+ cp podcast-play.sh ${BIN}/podcast-play
diff --git a/terminal-scripts/podcast-play.sh b/terminal-scripts/podcast-play.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+LOC="$HOME/Videos/Podcasts"
+
+vid="$(find "${LOC}/" -type f | sed "s|${LOC}/||g" | fzf)"
+
+[ "$vid" = "" ] && exit
+
+fullpath="${LOC}/${vid}"
+
+${VIDEO_PLAYER:-mpv} "$fullpath"
+
+read -p "Delete podcast? (y/N) " yesOrNoDelete
+
+if [ "$yesOrNoDelete" = "y" ] || [ "$yesOrNoDelete" = "Y" ]; then
+ trash-put "$fullpath"
+fi