My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
487 B

  1. #!/usr/bin/env sh
  2. # Description: Open images in hovered directory and thumbnails
  3. # open hovered image in sxiv and browse other images in the directory
  4. #
  5. # Shell: POSIX compliant
  6. # Author: Arun Prakash Jana
  7. if command -v sxiv >/dev/null 2>&1; then
  8. if ! [ -z "$1" ]; then
  9. if [ -f "$1" ]; then
  10. sxiv -q "$1" "$PWD"
  11. elif [ -d "$1" ] || [ -h "$1" ]; then
  12. sxiv -qt "$1"
  13. fi
  14. fi
  15. else
  16. echo "sxiv missing"
  17. read -r _
  18. fi