summarylogtreecommitdiffstats
path: root/bd-mpv
blob: 51f6e2e7932995c1674c192ec8685fd1389ab912 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
DRIVE="/dev/sr0"

mpv bd:// --bluray-device="$DRIVE" --vo=null --ao=null --frames=0 2>&1 | \
grep "idx:" | \
fzf --header "Select a title (Enter to Play, Esc to Quit)" \
    --reverse --height 40% \
    --bind "enter:execute(mpv bd://{3} --bluray-device=$DRIVE)+clear-query"