dotfiles/sway/scripts/printscreen

8 lines
198 B
Bash
Executable File

#! /bin/sh
# -*- sh -*-
file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png
grim -g "$(slurp)" $file \
&& wl-copy $file \
&& notify-send -i $file "File copied to clipboard"