From 3d7ee2063dc82b0099c01d16c244efa7a66c1d9e Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Sun, 14 Aug 2022 17:27:02 +0100 Subject: Added new screenshot funcionality --- scripts/.local/bin/screenshot | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3