Initial commit

This commit is contained in:
kirbara 2025-12-01 13:23:24 +07:00
commit cfcc57a8bd
Signed by: exp
GPG key ID: D7E63AD0019E75D9
353 changed files with 18756 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#!/bin/sh
mkdir -p ~/resource/screenshot
TIMESTAMP=$(date '+%Y-%m-%d_%H-%M-%S')
FILENAME="$HOME/resource/screenshot/screenshot_${TIMESTAMP}.png"
grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | \
satty --filename - \
--fullscreen \
--initial-tool crop \
--output-filename "$FILENAME" \
--disable-notifications \
--early-exit
if [ -f "$FILENAME" ]; then
wl-copy < "$FILENAME"
notify-send "Screenshot" \
"Saved & copied:\n$(basename "$FILENAME")\nGoshujin-sama!" \
-i "$FILENAME"
else
notify-send "Screenshot" "Not saved!" -u critical
fi