dotfiles/home/default/scripts/screenshot

8 lines
149 B
Plaintext
Raw Normal View History

#!/bin/sh
2022-03-01 10:57:22 -05:00
set -oue pipefail
# Take a screenshot
dir=~/Downloads/temp
2022-03-01 10:57:22 -05:00
(cd $dir && grim -g "$(slurp)" ./$(date +%Y-%m-%d_%H-%m-%s).png)
xdg-open $dir