2019-01-03 23:05:51 +05:30
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2019-11-19 21:01:59 +05:30
|
|
|
# Description: Open images in hovered directory and thumbnails
|
|
|
|
# open hovered image in sxiv and browse other images in the directory
|
2019-01-03 23:05:51 +05:30
|
|
|
#
|
2019-04-18 10:29:47 +05:30
|
|
|
# Shell: POSIX compliant
|
2019-01-03 23:05:51 +05:30
|
|
|
# Author: Arun Prakash Jana
|
|
|
|
|
2019-11-19 21:01:59 +05:30
|
|
|
if command -v sxiv >/dev/null 2>&1; then
|
|
|
|
if ! [ -z "$1" ]; then
|
|
|
|
if [ -f "$1" ]; then
|
2019-11-23 10:37:46 +05:30
|
|
|
sxiv -q "$1" "$PWD"
|
2019-11-19 21:01:59 +05:30
|
|
|
elif [ -d "$1" ] || [ -h "$1" ]; then
|
|
|
|
sxiv -qt "$1"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "sxiv missing"
|
2019-11-22 02:14:25 +05:30
|
|
|
read -r _
|
2019-11-19 21:01:59 +05:30
|
|
|
fi
|