From 46ee39b61a0a3896cbda542b1c8852e8a4908ed0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 27 Nov 2023 23:13:04 +0000 Subject: [PATCH] use $HOME variable instead of hardcoded path in screenshot.sh --- screenshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenshot.sh b/screenshot.sh index c94e526..9440643 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -1,6 +1,6 @@ #!/bin/sh # Simple screenshot script with selection using maim. -filepath="/home/andrew/media/images/screenshots/$(date +%Y-%m-%d\ %H:%M:%S).png" +filepath="$HOME/media/images/screenshots/$(date +%Y-%m-%d\ %H:%M:%S).png" maim --select --hidecursor | tee "$filepath" | xclip -selection clipboard -target image/png notify-send "$0" "Screenshot saved to: $filepath"