[download]

local/bin/kinomenu

   1 #!/bin/bash
   2 
   3 while read i; do
   4     mpv --profile=pseudo-gui "${i/\~/~}" &
   5 done < <(
   6     tac ~/.config/mpv/history   |
   7     uniq -f 4 | sed 's/\t/  /g' |
   8     menu -i kino -l 15 |
   9     awk -F '  --  ' '{ print $NF }'
  10 )