maimshot: hide cursor when selecting area

This commit is contained in:
krolyxon 2023-04-05 16:48:11 +05:30
parent b2dd4ab572
commit 73448d0efe
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh
case "$(printf "a selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area\\ncurrent window\\nfull screen" | dmenu -l 6 -i -p "Screenshot which area?")" in
"a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
"a selected area (copy)") maim -u -s | xclip -selection clipboard -t image/png ;;
"current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
"full screen (copy)") sleep 0.2 ; maim | xclip -selection clipboard -t image/png ;;
"a selected area") maim -s ~/pix/ss/pic-selected-"$(date '+%y-%m-%d-%H-%M').png" ;;
"a selected area") maim -u -s ~/pix/ss/pic-selected-"$(date '+%y-%m-%d-%H-%M').png" ;;
"current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(date '+%y-%m-%d-%H-%M').png" ;;
"full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(date '+%y-%m-%d-%H-%M').png" ;;
esac