summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/.local/bin/screenshot14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/.local/bin/screenshot b/scripts/.local/bin/screenshot
index 59ce2d3..a5c3d05 100755
--- a/scripts/.local/bin/screenshot
+++ b/scripts/.local/bin/screenshot
@@ -12,23 +12,33 @@ else
case "$INPUT" in
Screen)
- SAVE=$(printf "Clipboard\nPictures Folder" | dmenu -i -p "Save to: ")
+ SAVE=$(printf "Clipboard\nNote\nPictures Folder" | dmenu -i -p "Save to: ")
case "$SAVE" in
"Clipboard")
maim -u -q -d 1 -m 10 | xclip -selection clipboard -t image/png
;;
"Pictures Folder")
maim -u -q -d 1 -m 10 ~/Pictures/Screenshots/screenshot-"$(date '+%Y%m%d_%H%M%S')".png
+ ;;
+ "Note")
+ DATE=$(date '+%y%m%d%H%M%S%N')
+ maim -u -q -d 1 -m 10 /tmp/screenshot-"$DATE".png
+ sxiv /tmp/screenshot-"$DATE".png
esac
;;
Selection)
- SAVE=$(printf "Clipboard\nPictures Folder" | dmenu -i -p "Save to: ")
+ SAVE=$(printf "Clipboard\nNote\nPictures Folder" | dmenu -i -p "Save to: ")
case "$SAVE" in
"Clipboard")
maim -s -u -m 10 --color=1,1,1,0.1 | xclip -selection clipboard -t image/png
;;
"Pictures Folder")
maim -s -u -m 10 --color=1,1,1,0.1 ~/Pictures/Screenshots/screenshot-"$(date '+%Y%m%d_%H%M%S')".png
+ ;;
+ "Note")
+ DATE=$(date '+%y%m%d%H%M%S%N')
+ maim -s -u -m 10 --color=1,1,1,0.1 /tmp/screenshot-"$DATE".png
+ sxiv /tmp/screenshot-"$DATE".png
esac
;;
esac