From 927130756d5c3ac67cf51b4c9d260a0cf0d5ac07 Mon Sep 17 00:00:00 2001 From: tiyn Date: Fri, 10 Nov 2023 13:21:54 +0100 Subject: [PATCH] tools: changed order of screenshotmenu by usage --- .local/bin/tools/screenshotmenu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/tools/screenshotmenu b/.local/bin/tools/screenshotmenu index 4c01b4d..b1df724 100755 --- a/.local/bin/tools/screenshotmenu +++ b/.local/bin/tools/screenshotmenu @@ -7,12 +7,12 @@ output="$HOME/downloads/screenshot-$(date '+%Y-%m-%d_%H-%M-%S').png" xclip_img="xclip -sel clip -t image/png" xclip_txt="xclip -sel clip -t text/plain" -case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\ncolor picker (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in +case "$(printf "a selected area\\na selected area (copy)\\ncurrent window\\ncurrent window (copy)\\nfull screen\\nfull screen (copy)\\ncolor picker (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in "a selected area") maim -s $output ;; - "current window") maim -i "$(xdotool getactivewindow)" $output ;; - "full screen") maim $output ;; "a selected area (copy)") maim -s | ${xclip_img} ;; + "current window") maim -i "$(xdotool getactivewindow)" $output ;; "current window (copy)") maim -i "$(xdotool getactivewindow)" | ${xclip_img} ;; + "full screen") maim $output ;; "full screen (copy)") maim | ${xclip_img} ;; "color picker (copy)") xcolor |tr -d '\n' | ${xclip_txt} ;; esac