dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 110b5be20ef414020e00f1ac2c7b30ba4f7028f9
parent 51fa11ab80a567928f825337321c8ac74de06298
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 15 Mar 2019 07:51:24 +0100

Use dmenu_themed, save to ~/tmp/

Diffstat:
Mlinks/bin/maimpick | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/links/bin/maimpick b/links/bin/maimpick @@ -1,8 +1,8 @@ #!/bin/sh -case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfullscreen (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" ;; - "full screen") maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; +case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfullscreen (copy)" | dmenu_themed -l 6 -i -p "Screenshot which area?")" in + "a selected area") maim -s ~/tmp/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; + "current window") maim -i "$(xdotool getactivewindow)" ~/tmp/pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;; + "full screen") maim ~/tmp/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; "a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;; "current window (copy)") maim -i | xclip -selection clipboard -t image/png ;; "full screen (copy)") maim | xclip -selection clipboard -t image/png ;;