diff options
Diffstat (limited to '.local/bin/maimpick')
| -rwxr-xr-x | .local/bin/maimpick | 5 |
1 files changed, 5 insertions, 0 deletions
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" ;; |
