disable controls in mpv window
This commit is contained in:
6
fuzique
6
fuzique
@@ -267,7 +267,7 @@ NF == depth + 2 { print rl "|" ar, $0, mode_search >> release_file_search
|
||||
NF == depth + 3 { print tr "|" rl "|" ar, $0, mode_search >> tracks_file_search }
|
||||
' <"$CACHE_FILE"
|
||||
|
||||
$MPV --no-config --no-terminal --input-ipc-server="$MPV_SOCKET" --idle &
|
||||
$MPV --no-config --no-terminal --input-ipc-server="$MPV_SOCKET" --idle --no-osc --no-input-default-bindings &
|
||||
|
||||
$FZF \
|
||||
--reverse \
|
||||
@@ -290,6 +290,7 @@ $FZF \
|
||||
--bind="right:execute-silent:$0 --mpv-seekf" \
|
||||
--bind="left:execute-silent:$0 --mpv-seekb" \
|
||||
--bind="space:execute-silent:$0 --mpv-toggle-pause" \
|
||||
--bind="q:abort" \
|
||||
--bind="load:transform:
|
||||
if [ {3} = \"$MODE_PLAYLIST\" ]; then
|
||||
printf \"+hide-input\"
|
||||
@@ -299,6 +300,7 @@ $FZF \
|
||||
printf \"+rebind(right)\"
|
||||
printf \"+rebind(left)\"
|
||||
printf \"+rebind(space)\"
|
||||
printf \"+rebind(q)\"
|
||||
fi
|
||||
if [ {3} = \"$MODE_SEARCH\" ]; then
|
||||
printf \"+show-input\"
|
||||
@@ -308,6 +310,7 @@ $FZF \
|
||||
printf \"+unbind(right)\"
|
||||
printf \"+unbind(left)\"
|
||||
printf \"+unbind(space)\"
|
||||
printf \"+unbind(q)\"
|
||||
fi
|
||||
if [ {3} = \"$MODE_BROWSE\" ]; then
|
||||
printf \"+show-input\"
|
||||
@@ -317,6 +320,7 @@ $FZF \
|
||||
printf \"+unbind(right)\"
|
||||
printf \"+unbind(left)\"
|
||||
printf \"+unbind(space)\"
|
||||
printf \"+unbind(q)\"
|
||||
fi
|
||||
printf \"+transform-prompt:$0 --prompt {2} {3}\"
|
||||
" \
|
||||
|
Reference in New Issue
Block a user