A Simple X Image Viewer
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

image-info 458 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Example for ~/.sxiv/exec/image-info
  3. # Called by sxiv(1) whenever an image gets loaded,
  4. # with the name of the image file as its first argument.
  5. # The output is displayed in sxiv's status bar.
  6. filename=$(basename "$1")
  7. filesize=$(du -h "$1" | cut -f 1)
  8. geometry=$(identify -format '%wx%h' "$1[0]")
  9. tags=$(exiv2 -q pr -pi "$1" | awk '$1~"Keywords" { printf("%s,", $4); }')
  10. tags=${tags:+|}${tags%,}
  11. echo "[$filesize|$geometry$tags] $filename"