Make screenshot scripts more robust
This commit is contained in:
parent
ae37ae72fa
commit
c3247b08ad
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
grim - | wl-copy
|
||||
notify-send "Screenshot saved to clipboard" \
|
||||
-a grim -c screenshot -u low
|
||||
-a grim -c screenshot -u low -t 3000
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
grim -g "$(slurp)" - | wl-copy
|
||||
if region="$(slurp)"; then
|
||||
grim -g "$region" - | wl-copy
|
||||
notify-send "Screenshot saved to clipboard" \
|
||||
-a grim -c screenshot -u low
|
||||
-a grim -c screenshot -u low -t 3000
|
||||
else
|
||||
notify-send "Screenshot cancelled" \
|
||||
-a grim -c screenshot -u low -t 3000
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue