mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Use RAM instead of I/O | Minimize further
This commit is contained in:
parent
fe8f0bce94
commit
533c21c3af
@ -1,10 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
video_files=$(locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$')
|
||||||
tempfile=$(mktemp)
|
chosen_file=$(echo "$video_files" | sed 's|.*/||; s/\.[^.]*$//' | dmenu -p "Select Video")
|
||||||
locate -d ~/.config/.mymlocate.db -b -r '.*\.\(mp4\|mkv\|webm\|mov\|m4v\|wmv\|flv\|avi\)$' > "$tempfile"
|
mpv "$(echo "$video_files" | grep "/$chosen_file.")"
|
||||||
|
|
||||||
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