10 lines
272 B
Bash
Executable file
10 lines
272 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
DIR="$HOME/Pictures/Screenshots"
|
|
mkdir -p "$DIR"
|
|
|
|
FILE="$DIR/screenshot_$(date +'%Y-%m-%d_%H-%M-%S').png"
|
|
|
|
grim -g "$(slurp)" - | tee "$FILE" | wl-copy
|
|
|
|
notify-send "Screenshot Captured" "Saved to $FILE" -i $HOME/.config/mango/scripts/screenshot.png
|