Merge 18018b18ff0646d82f7d85471d755a4c73daecdd into 031938a792ac3107a512e89504929ef9e3e8ed6a

This commit is contained in:
Emre AKYÜZ 2023-11-10 09:55:43 +03:00 committed by GitHub
commit fa21e4283a
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 -p "Select Video")
mpv "$(echo "$video_files" | fgrep "/$chosen_file.")"