mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge e259c2af0a25a893e8e5033874e5bc1985cb10e0 into 07952026753f1bbeaf5b6c4eb5414a9c51536041
This commit is contained in:
commit
d2404bd01a
4
.local/bin/videosearch
Normal file
4
.local/bin/videosearch
Normal 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.")"
|
||||
Loading…
x
Reference in New Issue
Block a user