Krolyxon
Commit 73448d0

Branches

Refs →

dotfiles-x1173448d0

maimshot: hide cursor when selecting area

Author
krolyxon
Date
2023-04-05 16:48 +0530
Parent
b2dd4ab
Commit
73448d0efe2a9874faae902486ec81772037045c

+2 −2

1 file changed

  1. M .local/bin/maimshot +2 −2
M .local/bin/maimshot View
@@ -1,10 +1,10 @@
11 #!/bin/sh
22
33 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
4− "a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
4+ "a selected area (copy)") maim -u -s | xclip -selection clipboard -t image/png ;;
55 "current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
66 "full screen (copy)") sleep 0.2 ; maim | xclip -selection clipboard -t image/png ;;
7− "a selected area") maim -s ~/pix/ss/pic-selected-"$(date '+%y-%m-%d-%H-%M').png" ;;
7+ "a selected area") maim -u -s ~/pix/ss/pic-selected-"$(date '+%y-%m-%d-%H-%M').png" ;;
88 "current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(date '+%y-%m-%d-%H-%M').png" ;;
99 "full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(date '+%y-%m-%d-%H-%M').png" ;;
1010 esac