dwm/dwmscripts/scrot.sh

8 lines
359 B
Bash
Executable File

scrot -o /tmp/scrot.png
feh -F /tmp/scrot.png &
feh_pid=$!
scrot --select '/home/naki/pic/screenshots/%F_%T_$wx$h.png' -e 'xclip -selection clipboard -target image/png -i $f'
kill $feh_pid
# flameshot gui --raw | xclip -selection clipboard -target image/png
# maim -u | feh -F - & sleep 1 && maim -s | xclip -selection clipboard -target image/png && kill $!