in reply to brownmustardminion

I think you'd be fine still usin swappy, just use it in a way that does what you need. I use maim piped to xclip as below, then I tie each of those cases to [PrScr] with different modkeys.

case "${1}" in
    area)     maim --hidecursor -s |tee $HOME/Pictures/Screenshots/$(date +%y%m%d-%H%M%S).png |xclip -selection clipboard -t image/png
    ;;
    savew)    maim --hidecursor -i $(xdotool getactivewindow) |tee $HOME/Pictures/Screenshots/$(date +%y%m%d-%H%M%S).png |xclip -selection clipboard -t image/png
    ;;
    savef)    maim --hidecursor |tee $HOME/Pictures/Screenshots/$(date +%y%m%d-%H%M%S).png |xclip -selection clipboard -t image/png
    ;;
esac

Linux reshared this.

in reply to brownmustardminion

magick import of imagemagick has a crosshair. Here's my function:
screnshot() {
    ## script to make screenshots with imagemagick's import command and display them
    ## usage: screenshot <path> <name>

    _id="$(date "+%Y-%m-%d_%H-%M-%S")"
    _dir="${1:-$XDG_CACHE_HOME}"
    _shot="$_dir"/"${2:-shot_$_id}.png"

    mkdir -p "$_dir"
    printf '%s\n' "$_shot"
    magick import "$_shot" && \
    magick display "$_shot"
}

And good old xfce4-screenshooter, xfce4-screenshooter -r and xfce4-screenshooter -w.
This entry was edited (11 months ago)