diff options
Diffstat (limited to 'i3/scripts/screenshot')
-rwxr-xr-x | i3/scripts/screenshot | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/i3/scripts/screenshot b/i3/scripts/screenshot new file mode 100755 index 0000000..ecc60dc --- /dev/null +++ b/i3/scripts/screenshot @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +if [[ $1 = "full" ]]; then + maim -u | tee $HOME/Pictures/Screenshots/$(date +%F-%H%M%S)_maim.png | xclip -selection clipboard -t image/png + +elif [[ $1 = "fullwait" ]]; then + sleep 5 && maim -u | tee $HOME/Pictures/Screenshots/$(date +%F-%H%M%S)_maim.png | xclip -selection clipboard -t image/png + +elif [[ $1 = "part" ]]; then + maim -s -u | tee $HOME/Pictures/Screenshots/$(date +%F-%H%M%S)_maim.png | xclip -selection clipboard -t image/png +fi + +notify-send "Screenshot Taken" "Saved to \~/Pictures/Screenshots"
\ No newline at end of file |