add notification upon screenshot

This commit is contained in:
2023-07-16 21:13:22 +01:00
parent a7d2de1628
commit feccc77924

View File

@ -1,5 +1,8 @@
#!/bin/sh
# Simple screenshot script with selection.
filepath="/home/andrew/media/images/screenshots/$(date +%Y-%m-%d\ %H:%M:%S).png"
maim --select --hidecursor |
tee /home/andrew/media/images/screenshots/"$(date +%Y-%m-%d\ %H:%M:%S)".png | xclip -selection clipboard -target image/png
tee "$filepath" | xclip -selection clipboard -target image/png
notify-send "screenshot.sh" "Screenshot saved to: $filepath"