dotfiles/mango/scripts/screenshot.sh
Guilhem Baccialone 9499debf01 First commit
2026-06-17 23:29:22 +02:00

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