mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-31 16:37:45 +02:00
tools: changed order of screenshotmenu by usage
This commit is contained in:
parent
9e4d95af44
commit
927130756d
@ -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_img="xclip -sel clip -t image/png"
|
||||||
xclip_txt="xclip -sel clip -t text/plain"
|
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 ;;
|
"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} ;;
|
"a selected area (copy)") maim -s | ${xclip_img} ;;
|
||||||
|
"current window") maim -i "$(xdotool getactivewindow)" $output ;;
|
||||||
"current window (copy)") maim -i "$(xdotool getactivewindow)" | ${xclip_img} ;;
|
"current window (copy)") maim -i "$(xdotool getactivewindow)" | ${xclip_img} ;;
|
||||||
|
"full screen") maim $output ;;
|
||||||
"full screen (copy)") maim | ${xclip_img} ;;
|
"full screen (copy)") maim | ${xclip_img} ;;
|
||||||
"color picker (copy)") xcolor |tr -d '\n' | ${xclip_txt} ;;
|
"color picker (copy)") xcolor |tr -d '\n' | ${xclip_txt} ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user