scripts/wl_sss.sh
2023-05-25 07:37:26 +03:00

9 lines
278 B
Bash
Executable File

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