aurora.localbinmovie
| 1 | #!/bin/bash |
| 2 | |
| 3 | |
| 4 | if [ -t 0 ]; then |
| 5 | filename="$(find ~/remote/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | fzf)" |
| 6 | else |
| 7 | filename="$(find ~/remote/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | fuzzel -d -l 25)" |
| 8 | fi |
| 9 | |
| 10 | filepath="$(find ~/remote/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)")" |
| 11 | mpv "$(grep "$filename" <<< "$filepath")" |
| 12 |