From 6b334b59fc9f681fd16fe437c363213bba80f640 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 31 May 2019 19:38:43 -0400 Subject: script documentation --- .local/bin/maimpick | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.local/bin/maimpick') diff --git a/.local/bin/maimpick b/.local/bin/maimpick index 07d032f..7125e61 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -1,4 +1,9 @@ #!/bin/sh + +# This is bound to Shift+PrintScreen by default, requires maim. It lets you +# choose the kind of screenshot to take, including copying the image or even +# highlighting an area to copy. scrotcucks on suicidewatch right now. + case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in "a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; "current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;; -- cgit v1.3.1