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 }
|
NF == depth + 3 { print tr "|" rl "|" ar, $0, mode_search >> tracks_file_search }
|
||||||
' <"$CACHE_FILE"
|
' <"$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 \
|
$FZF \
|
||||||
--reverse \
|
--reverse \
|
||||||
@@ -290,6 +290,7 @@ $FZF \
|
|||||||
--bind="right:execute-silent:$0 --mpv-seekf" \
|
--bind="right:execute-silent:$0 --mpv-seekf" \
|
||||||
--bind="left:execute-silent:$0 --mpv-seekb" \
|
--bind="left:execute-silent:$0 --mpv-seekb" \
|
||||||
--bind="space:execute-silent:$0 --mpv-toggle-pause" \
|
--bind="space:execute-silent:$0 --mpv-toggle-pause" \
|
||||||
|
--bind="q:abort" \
|
||||||
--bind="load:transform:
|
--bind="load:transform:
|
||||||
if [ {3} = \"$MODE_PLAYLIST\" ]; then
|
if [ {3} = \"$MODE_PLAYLIST\" ]; then
|
||||||
printf \"+hide-input\"
|
printf \"+hide-input\"
|
||||||
@@ -299,6 +300,7 @@ $FZF \
|
|||||||
printf \"+rebind(right)\"
|
printf \"+rebind(right)\"
|
||||||
printf \"+rebind(left)\"
|
printf \"+rebind(left)\"
|
||||||
printf \"+rebind(space)\"
|
printf \"+rebind(space)\"
|
||||||
|
printf \"+rebind(q)\"
|
||||||
fi
|
fi
|
||||||
if [ {3} = \"$MODE_SEARCH\" ]; then
|
if [ {3} = \"$MODE_SEARCH\" ]; then
|
||||||
printf \"+show-input\"
|
printf \"+show-input\"
|
||||||
@@ -308,6 +310,7 @@ $FZF \
|
|||||||
printf \"+unbind(right)\"
|
printf \"+unbind(right)\"
|
||||||
printf \"+unbind(left)\"
|
printf \"+unbind(left)\"
|
||||||
printf \"+unbind(space)\"
|
printf \"+unbind(space)\"
|
||||||
|
printf \"+unbind(q)\"
|
||||||
fi
|
fi
|
||||||
if [ {3} = \"$MODE_BROWSE\" ]; then
|
if [ {3} = \"$MODE_BROWSE\" ]; then
|
||||||
printf \"+show-input\"
|
printf \"+show-input\"
|
||||||
@@ -317,6 +320,7 @@ $FZF \
|
|||||||
printf \"+unbind(right)\"
|
printf \"+unbind(right)\"
|
||||||
printf \"+unbind(left)\"
|
printf \"+unbind(left)\"
|
||||||
printf \"+unbind(space)\"
|
printf \"+unbind(space)\"
|
||||||
|
printf \"+unbind(q)\"
|
||||||
fi
|
fi
|
||||||
printf \"+transform-prompt:$0 --prompt {2} {3}\"
|
printf \"+transform-prompt:$0 --prompt {2} {3}\"
|
||||||
" \
|
" \
|
||||||
|
Reference in New Issue
Block a user