From feccc779248803c67f0919bdd9d76ddab6db0d39 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 16 Jul 2023 21:13:22 +0100 Subject: [PATCH] add notification upon screenshot --- screenshot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/screenshot.sh b/screenshot.sh index 3a45777..f6c3d7e 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -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"