diff options
author | rafa_99 <raroma09@gmail.com> | 2022-08-14 17:27:02 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2022-08-14 17:27:02 +0100 |
commit | 3d7ee2063dc82b0099c01d16c244efa7a66c1d9e (patch) | |
tree | 65079b6c3e4d176beca4236577ebea827589c9f8 /scripts | |
parent | 641d125e23e0ec0ef80cecb295b56d0b0d1cc492 (diff) |
Added new screenshot funcionality
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/.local/bin/screenshot | 14 |
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 |