1
0
Fork 0
dotfiles/.config/nsxiv/exec/image-info

12 lines
193 B
Bash
Executable File

#!/bin/sh
s=" " # field separator
exec 2>/dev/null
filename=$(basename -- "$1")
filesize=$(du -Hh -- "$1" | cut -f 1)
geometry="${2}x${3}"
echo "${filesize}${s}${geometry}${s}${filename}"