add:mangowm stuff

This commit is contained in:
kokopi-dev
2026-04-05 01:14:21 +09:00
parent 6fd4c54ded
commit e78e9b25f1
5 changed files with 101 additions and 1 deletions

17
mangowm/ss.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
MODE=${1:-area}
OUTPUT=~/pictures/$(date +"%Y-%m-%d_%H-%M-%S").png
case "$MODE" in
area)
grim -g "$(slurp)" - | satty --filename - --output-filename "$OUTPUT" --early-exit --copy-command wl-copy
;;
screen)
grim -g "$(slurp -o)" - | satty --filename - --output-filename "$OUTPUT" --early-exit --copy-command wl-copy
;;
*)
echo "Usage: $0 [area|screen]"
exit 1
;;
esac