Merge e259c2af0a25a893e8e5033874e5bc1985cb10e0 into 07952026753f1bbeaf5b6c4eb5414a9c51536041

This commit is contained in:
Emre AKYÜZ 2023-11-19 00:55:00 +03:00 committed by GitHub
commit d2404bd01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
.local/bin/videosearch Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
video_files=$(locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$')
chosen_file=$(echo "$video_files" | sed 's|.*/||; s/\.[^.]*$//' | dmenu -i -l 10 -p "Select Video")
mpv "$(echo "$video_files" | grep -F "/$chosen_file.")"