sxiv: Fix resolution display

Remove `[0]` from `identify` argument, not sure why it was there.
See https://wiki.archlinux.org/index.php/Sxiv.
master
Pierre Neidhardt 2016-12-23 15:44:23 +01:00
parent 14ac3d9e48
commit 1b66b4191e
1 changed files with 2 additions and 4 deletions

View File

@ -1,10 +1,8 @@
#!/bin/sh
s=" | " # field separator
filename=$(basename "$1")
filesize=$(du -Hh "$1" | cut -f 1)
geometry=$(identify -format '%wx%h' "$1[0]")
geometry=$(identify -format '%wx%h' "$1")
echo "${filename}${s}${filesize}${s}${geometry}"
printf "%s | %s | %s" "$filename" "$filesize" "$geometry"