aboutsummaryrefslogtreecommitdiff
path: root/i3/scripts/screenshot
diff options
context:
space:
mode:
authorBlaster4385 <TheTablaster@aospa.co>2024-02-15 00:37:46 +0530
committerBlaster4385 <blaster4385@tablaster.dev>2024-02-26 00:30:39 +0530
commitcead788a4a8e67f776d82c4ad50f6d065609c1cf (patch)
tree35fe47589914bdf04f3ecd86c86800ced4068703 /i3/scripts/screenshot
Initial dotfiles
Diffstat (limited to 'i3/scripts/screenshot')
-rwxr-xr-xi3/scripts/screenshot12
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