Added screenshot script for SwayWM

This commit is contained in:
Fabio Scotto di Santolo
2025-08-09 16:55:07 +02:00
parent 3e8b78f30d
commit a30b43ca25
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
#!/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"