use $HOME variable instead of hardcoded path in screenshot.sh

This commit is contained in:
2023-11-27 23:13:04 +00:00
parent ca54677da5
commit 46ee39b61a

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Simple screenshot script with selection using maim. # 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 maim --select --hidecursor | tee "$filepath" | xclip -selection clipboard -target image/png
notify-send "$0" "Screenshot saved to: $filepath" notify-send "$0" "Screenshot saved to: $filepath"