nix-dotfiles/scripts/dynscreenshot.sh

2 lines
119 B
Bash

shotpath="Pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png"; slurp | grim -g - $shotpath && wl-copy < $shotpath