diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-05-31 19:38:43 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-05-31 19:38:43 -0400 |
| commit | 6b334b59fc9f681fd16fe437c363213bba80f640 (patch) | |
| tree | b0321c4b54d9b34d999c164ec5fb7ac81bc71ea0 /.local/bin/maimpick | |
| parent | ae327871d27157d29dffe25ef4aa0502e54bf4e1 (diff) | |
| download | eibhear-6b334b59fc9f681fd16fe437c363213bba80f640.tar.gz eibhear-6b334b59fc9f681fd16fe437c363213bba80f640.tar.zst eibhear-6b334b59fc9f681fd16fe437c363213bba80f640.zip | |
script documentation
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" ;; |
