From a5181c505ccbef63e5b29f309518fb6712242e8c Mon Sep 17 00:00:00 2001 From: cronyakatsuki <64900606+cronyakatsuki@users.noreply.github.com> Date: Tue, 25 Oct 2022 22:08:36 +0200 Subject: [PATCH] Moved to shotgun and hacksaw. --- dmenu-screenshot | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dmenu-screenshot b/dmenu-screenshot index a52e75b..c2a5d39 100755 --- a/dmenu-screenshot +++ b/dmenu-screenshot @@ -9,10 +9,6 @@ dir="$HOME/pics/screenshots" [ ! -d "$dir" ] && mkdir $dir -p case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | $DMENU -l 6 -p "Screenshot which area?")" in - "a selected area") sleep 0.5; maim -s $dir/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; - "current window") sleep 0.5; maim -i "$(xdotool getactivewindow)" $dir/pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;; - "full screen") sleep 0.5; maim $dir/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; - "a selected area (copy)") sleep 0.5; maim -s | xclip -selection clipboard -t image/png ;; - "current window (copy)") sleep 0.5; maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;; - "full screen (copy)") sleep 0.5; maim | xclip -selection clipboard -t image/png ;; + "a selected area") sleep 0.5; shotgun -g $(hacksaw) $dir/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; + "full screen") sleep 0.5; shotgun $dir/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; esac