summaryrefslogtreecommitdiffstats
path: root/vindex
blob: a2ac7bfca1b6d9027b88a1c6d1f8a85c4d994252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/zsh

vfile="$HOME/.cache/vindex"
if [[ $1 == "gen" ]];then
    /usr/bin/locate '*.avi' '*.mkv' '*.mov' '*.flv' '*.mpeg' '*.mp4' '*.mp4' >| $vfile
else
    while :
    do
        file=$($=DMENU <  $vfile)
        [[ -z $file ]] && exit
        ~/bin/mplayer $file &
   done
fi