summaryrefslogtreecommitdiff
path: root/maimpick
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-10-10 19:25:25 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-10-10 19:25:25 +0200
commit7f6189dcbed755af34e222237b8cfa8b1f903696 (patch)
tree142874823cfcf5df3e2b5a54d48b23ea8e2a6c03 /maimpick
parent807de46d3a3cbef9a3c3c104f6db87b142e6eed5 (diff)
downloadchadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.tar.gz
chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.tar.bz2
chadscripts-7f6189dcbed755af34e222237b8cfa8b1f903696.zip
used shfmt -s
Diffstat (limited to 'maimpick')
-rwxr-xr-xmaimpick2
1 files changed, 1 insertions, 1 deletions
diff --git a/maimpick b/maimpick
index 0ef8455..0f1f811 100755
--- a/maimpick
+++ b/maimpick
@@ -8,7 +8,7 @@ output="$(date '+%y%m%d-%H%M-%S').png"
xclip_cmd="xclip -sel clip -t image/png"
ocr_cmd="xclip -sel clip"
-case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\ncopy selected image to text" | dmenu -l 7 -i -p "Screenshot which area?")" in
+case "$(printf 'a selected area\ncurrent window\nfull screen\na selected area (copy)\ncurrent window (copy)\nfull screen (copy)\ncopy selected image to text' | dmenu -l 7 -i -p "Screenshot which area?")" in
"a selected area") maim -u -s pic-selected-"${output}" ;;
"current window") maim -B -q -d 0.2 -i "$(xdotool getactivewindow)" pic-window-"${output}" ;;
"full screen") maim -q -d 0.2 pic-full-"${output}" ;;