nix-config/home-manager/dotfiles/sway/screen_and_copy.sh
2024-11-01 18:16:26 +01:00

8 lines
175 B
Bash
Executable file

if [[ "$1" = "area" ]]; then
SCREENPATH=$(grimshot save area)
elif [ "$1" = "output" ]; then
SCREENPATH=$(grimshot save output)
fi
cat $SCREENPATH | wl-copy -t image/png