소스 검색

which prints to screen

master
Arun Prakash Jana 4 년 전
부모
커밋
c360f5c908
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. +7
    -7
      plugins/preview-tabbed

+ 7
- 7
plugins/preview-tabbed 파일 보기

@@ -54,11 +54,11 @@ PAGER=${PAGER:-"vim -R"}
NUKE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins/nuke"


if which xterm ; then
if which xterm >/dev/null 2>&1 ; then
TERMINAL="xterm -into"
elif which urxvt ; then
elif which urxvt >/dev/null 2>&1 ; then
TERMINAL="urxvt -embed"
elif which st ; then
elif which st >/dev/null 2>&1 ; then
TERMINAL="st -w"
else
echo "No xembed term found" >&2
@@ -131,28 +131,28 @@ previewer_loop () {

case "$MIME" in
video/*)
if which mpv ; then
if which mpv >/dev/null 2>&1 ; then
mpv --force-window=immediate --loop-file --wid="$XID" "$FILE" &
else
term_nuke "$XID" "$FILE"
fi
;;
audio/*)
if which mpv ; then
if which mpv >/dev/null 2>&1 ; then
mpv --force-window=immediate --loop-file --wid="$XID" "$FILE" &
else
term_nuke "$XID" "$FILE"
fi
;;
image/*)
if which sxiv ; then
if which sxiv >/dev/null 2>&1 ; then
sxiv -e "$XID" "$FILE" &
else
term_nuke "$XID" "$FILE"
fi
;;
application/pdf)
if which zathura ; then
if which zathura >/dev/null 2>&1 ; then
zathura -e "$XID" "$FILE" &
else
term_nuke "$XID" "$FILE"


불러오는 중...
취소
저장