1 2 3
#!/bin/bash maim -us | tee >(convert - ~/Pictures/Screenshots/$(date +%F-%T).png) | xclip -selection clipboard -t image/png