scripts/ss_rect.sh
Ferit Yiğit BALABAN 7cb6dc5ff1
better naming & small fixes
Signed-off-by: Ferit Yiğit BALABAN <fyb@fybx.dev>
2024-01-15 22:32:49 +03:00

9 lines
302 B
Bash
Executable File

#!/usr/bin/bash
#
# Ferit Yiğit BALABAN, <fybalaban@fybx.dev>
#
# Select an area with slurp, ss with grim
# and copy to clipboard.
SS="/media/fyb/share/shoka/swap/screenshots"
grim -c -g "$( slurp )" - | wl-copy --type image/png && wl-paste > "$SS"/$( date +'%Y-%m-%d-%H%M%S.png' )