diff options
| author | Daniel <[email protected]> | 2024-06-28 18:00:25 -0400 |
|---|---|---|
| committer | Daniel <[email protected]> | 2024-06-28 18:00:25 -0400 |
| commit | 3fa5ce3cc229cdb5f066babb2328edb531165a45 (patch) | |
| tree | e78ddba1f54c20f882534e69e17e882c42580de1 | |
| parent | 2998bfcd86ecb373509d6f55c56937f8cdc7dd6b (diff) | |
add notifications done
| -rwxr-xr-x | bin/.local/bin/scripts/maimpick | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/.local/bin/scripts/maimpick b/bin/.local/bin/scripts/maimpick index da58635..7efad64 100755 --- a/bin/.local/bin/scripts/maimpick +++ b/bin/.local/bin/scripts/maimpick @@ -5,10 +5,10 @@ output="$(date '+%y%m%d-%H%M-%S').png" xclip_cmd="xclip -sel clip -t image/png" case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in - "a selected area") maim -u -s $HOME/Pictures/screenshots/pic-selected-"${output}" ;; - "current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" $HOME/Pictures/screenshots/pic-window-"${output}" ;; - "full screen") maim -q -d 0.2 $HOME/Pictures/screenshots/pic-full-"${output}" ;; - "a selected area (copy)") maim -u -s | ${xclip_cmd} ;; - "current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;; - "full screen (copy)") maim -q -d 0.2 | ${xclip_cmd} ;; + "a selected area") maim -u -s $HOME/Pictures/screenshots/pic-selected-"${output}"; notify-send "Selected area screenshot saved";; + "current window") maim -q -d 0.2 -i "$(xdotool getactivewindow)" $HOME/Pictures/screenshots/pic-window-"${output}"; notify-send "Current window screenshot saved" ;; + "full screen") maim -q -d 0.2 $HOME/Pictures/screenshots/pic-full-"${output}"; notify-send "Fullscreen screenshot saved" ;; + "a selected area (copy)") maim -u -s | ${xclip_cmd}; notify-send "Selected area screenshot copied" ;; + "current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd}; notify-send "Current window screenshot copied";; + "full screen (copy)") maim -q -d 0.2 | ${xclip_cmd}; notify-send "Fullscreen screenshot copied";; esac |
