1 2 3 4 5 6 7
#!/bin/sh # Для работы скрипта нужен установленный scrot! total=`ls /home/username/screenshots/ | grep -c screenshot` let "total += 1" com=`scrot -c -d 0.1 /home/username/screenshots/screenshot$total.png`