get script name via $0 instead of hardcoded

This commit is contained in:
2023-11-26 13:41:50 +00:00
parent 283d58c5d2
commit ca54677da5

View File

@ -3,4 +3,4 @@
filepath="/home/andrew/media/images/screenshots/$(date +%Y-%m-%d\ %H:%M:%S).png"
maim --select --hidecursor | tee "$filepath" | xclip -selection clipboard -target image/png
notify-send "screenshot.sh" "Screenshot saved to: $filepath"
notify-send "$0" "Screenshot saved to: $filepath"