add:screenshot direct screen capture
This commit is contained in:
@@ -1,2 +1,17 @@
|
||||
#!/bin/bash
|
||||
grim -g "$(slurp)" - | satty --filename - --output-filename ~/pictures/ss/$(date +"%Y-%m-%d_%H-%M-%S").png --early-exit --copy-command wl-copy
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user