diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-04 12:50:12 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-04 12:50:22 +0530 |
| commit | 4eb5f01f1f7a11527be56bd8a8afecd31d640b15 (patch) | |
| tree | e936f39df5036f0ba1928f662ea6f4deeee31fe4 /config/lf/previewer.sh | |
| parent | 43e9a80ddf11931c9bbad94262605951e7ff3d2a (diff) | |
| download | nixos-config-4eb5f01f1f7a11527be56bd8a8afecd31d640b15.tar.gz nixos-config-4eb5f01f1f7a11527be56bd8a8afecd31d640b15.zip | |
config sync
Diffstat (limited to 'config/lf/previewer.sh')
| -rwxr-xr-x | config/lf/previewer.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/lf/previewer.sh b/config/lf/previewer.sh index 05a1f34..981ef55 100755 --- a/config/lf/previewer.sh +++ b/config/lf/previewer.sh @@ -29,7 +29,10 @@ case "$1" in *.[1-8]) man "$1" | col -b ;; # Images - *.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) mediainfo "$1"; ;; + *.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) + catimg -w "$((width * 2 * 3))" "$1"; + echo "done" + ;; #*.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) #~/scripts/image.sh draw "$1" "$x" "$y" "$width" "$height"; |
