Files
dotfiles/sway/.config/sway/scripts/screenshot.sh
2025-12-01 12:09:40 +01:00

9 lines
252 B
Bash
Executable File

#!/usr/bin/env bash
file="$HOME/Pictures/Screenshots/$(date +%Y-%m-%dT%H:%M:%S).png"
thumb="/tmp/screenshot-thumb.png"
grim "$file" \
&& wl-copy < "$file" \
&& magick "$file" -resize 640x480 "$thumb" \
&& fyi -i "$thumb" "📸 Catch screenshot"