diff options
| author | krolyxon <krolyxon@tutanota.com> | 2023-05-24 22:58:30 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2023-05-24 22:58:30 +0530 |
| commit | 8839ac5f3113f966b35920e412ef73b7aafece54 (patch) | |
| tree | 2b66b758edf5f74f2795bbe3e77d2b9728607c10 /.local/bin/maimshot | |
| parent | c1af8c0ef031d08812330e1cea925d3858bf6354 (diff) | |
scripts changes
Diffstat (limited to '.local/bin/maimshot')
| -rwxr-xr-x | .local/bin/maimshot | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/maimshot b/.local/bin/maimshot index d6c522a..c85e1c0 100755 --- a/.local/bin/maimshot +++ b/.local/bin/maimshot @@ -4,7 +4,7 @@ case "$(printf "a selected area (copy)\\ncurrent window (copy)\\nfull screen (co "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 -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" ;; + "a selected area") maim -u -s ~/pix/ss/pic-selected-$(uuidgen | awk -F- '{printf $2}')-"$(date '+%y-%m-%d').png" ;; + "current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(uuidgen | awk -F- '{printf $2}')-$(date '+%y-%m-%d').png" ;; + "full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(uuidgen | awk -F- '{printf $2}')-$(date '+%y-%m-%d').png" ;; esac |
