Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
460 B

#!/usr/bin/env bash
#Создан: Пт 29 янв 2016 11:11:27
#Изменён: Пн 15 ноя 2021 10:31:16
COLUMNS=`tput cols`
LINES=`tput lines`
FILENAME="$1"
clear
printf "\e]20;;100x100+1000+1000\a"
#Обработка только изображений
file "$FILENAME" | grep 'jpg|JPEG|png|PNG|GIF' 2>&1 >/dev/null
if [ $? -eq 0 ]; then
printf "\\e]20;${FILENAME};$((LINES/2))x$((LINES/2))+$((COLUMNS/3+10))+$((LINES/3)):op=keep-aspect\a"
fi