From 03ba9f17f662841807fa3bfd473cedddee710612 Mon Sep 17 00:00:00 2001 From: PrivateLalle <29478339+LalleSX@users.noreply.github.com> Date: Tue, 2 Aug 2022 11:52:52 +0000 Subject: [PATCH] Update maimpick changes screenshot directory to the Pictures folder in home. Taking many screenshots fills up the home dir, this fixes it. If there is no picture folder, it will create one --- .local/bin/maimpick | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.local/bin/maimpick b/.local/bin/maimpick index 8ea9f5ec..552d7812 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -8,6 +8,9 @@ output="$(date '+%y%m%d-%H%M-%S').png" xclip_cmd="xclip -sel clip -t image/png" +# Picture output location +cd $HOME/Pictures || mkdir $HOME/Pictures && cd $HOME/Pictures + 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-"${output}" ;; "current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" pic-window-"${output}" ;;