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.

21 lines
452 B

7 years ago
#!/bin/bash
#Создан: Пт 29 янв 2016 11:11:27
#Изменён: Чт 12 апр 2018 11:08:24
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