mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-28 13:48:25 +02:00
11 lines
387 B
Text
11 lines
387 B
Text
|
#!/bin/zsh
|
||
|
|
||
|
find -regextype posix-extended -iregex '.*\.(jpe?g|png|webp)' -print0 \
|
||
|
| xargs -0 identify -format "%[fx:w*h] %[w]x%[h] %i\n" \
|
||
|
| while read pixels resolution name; do
|
||
|
count=$(getfattr --only-values -n user.count $name 2> /dev/null || echo 0)
|
||
|
printf "%s\t%9s\t%5d\t%s\n" $pixels $resolution $count $name
|
||
|
done \
|
||
|
| sort -g -b -k3,3r -k1,1 \
|
||
|
| cut -f2-
|