diff options
author | Blaster4385 <TheTablaster@aospa.co> | 2024-02-15 00:37:46 +0530 |
---|---|---|
committer | Blaster4385 <blaster4385@tablaster.dev> | 2024-02-26 00:30:39 +0530 |
commit | cead788a4a8e67f776d82c4ad50f6d065609c1cf (patch) | |
tree | 35fe47589914bdf04f3ecd86c86800ced4068703 /i3/scripts/screenshot |
Initial dotfiles
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 |