This commit is contained in:
2025-09-18 11:35:56 +02:00
commit 2203d6075f
45 changed files with 935 additions and 0 deletions

15
shell/mp4.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Find all .mp4 files in the current directory and subdirectories
media_files=$(find . -type f \( -name "*.mp4" -o -name "*.mp3" \))
# Use fzf to allow the user to select a file
selected_file=$(echo "$media_files" | fzf)
# Check if a file was selected
if [[ -n $selected_file ]]; then
# Play the selected file with mpv
mpv "$selected_file" --save-position-on-quit
else
echo "No file selected."
fi