use $HOME variable instead of hardcoded path in screenshot.sh
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user