• 0 Posts
  • 1 Comment
Joined 17 hours ago
cake
Cake day: March 3rd, 2025

help-circle
  • @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