nixos-config/scripts/screenshot-slurp

10 lines
270 B
Plaintext
Raw Normal View History

2024-02-09 17:17:48 -05:00
#!/usr/bin/env bash
2024-02-17 13:18:27 -05:00
if region="$(slurp)"; then
grim -g "$region" - | wl-copy
notify-send "Screenshot saved to clipboard" \
-a grim -c screenshot -u low -t 3000
else
notify-send "Screenshot cancelled" \
-a grim -c screenshot -u low -t 3000
fi