mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge fe8f0bce94e051c0a88972134aafad6050ae8149 into 1e3adf9c03b2e563e81a13d6907ffd5ca20b887a
This commit is contained in:
commit
dabcf0f0ca
10
.local/bin/videosearch
Normal file
10
.local/bin/videosearch
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
tempfile=$(mktemp)
|
||||
locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$' > "$tempfile"
|
||||
|
||||
chosen_name=$(sed 's|.*/||; s/\.[^.]*$//' "$tempfile" | dmenu -i -l 10 -p "Select a video file:")
|
||||
chosen_path=$(grep "/$chosen_name\." "$tempfile")
|
||||
|
||||
mpv "$chosen_path"
|
||||
rm -f "$tempfile"
|
||||
Loading…
x
Reference in New Issue
Block a user