make_screenshots

This commit is contained in:
Slava Rogozhkin 2025-09-11 11:25:28 +03:00
parent 7e4d9276c7
commit 4b3439a757
1 changed files with 12 additions and 0 deletions

12
make_screenshots Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Сохраняет копию скриншота области в dst_folder
# Копирует в буфер обмена (X11)
dst_folder="$HOME/screenshots";
srcimg="$dst_folder/source.jpg";
tgtimg="$dst_folder/$(date "+%d%m%Y").jpg";
maim --select --format=jpg "$srcimg";
ffmpeg -y -i "$srcimg" -vf "scale=iw/2:ih/2" "$tgtimg";
xclip -selection clipboard -t image/jpg "$tgtimg"