mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Another fix for sxiv | slideshow
This commit is contained in:
parent
a8e31d6a1d
commit
495a48b879
@ -34,6 +34,10 @@ cmd open ${{
|
||||
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
|
||||
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
||||
image/svg+xml) display -- $f ;;
|
||||
image/*) bash -c '
|
||||
shopt -s nullglob
|
||||
dir="$0"
|
||||
selected_file="$1"
|
||||
image/*) bash -c '
|
||||
shopt -s nullglob
|
||||
dir="$0"
|
||||
@ -44,8 +48,7 @@ cmd open ${{
|
||||
done
|
||||
for ((i=0; i<${#images[@]}; i++)); do
|
||||
[[ "${images[i]}" = "$selected_file" ]] && {
|
||||
images=( "${images[@]:i}" "${images[@]:0:i}" )
|
||||
sxiv -abfio "${images[@]}"
|
||||
sxiv -nabfio "$((i + 1))" "${images[@]}"
|
||||
break
|
||||
}
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user