tweak: make screenshot notifications transient
This commit is contained in:
parent
68d8abbc5c
commit
5918f9b71c
3 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
grim - | wl-copy
|
grim - | wl-copy
|
||||||
notify-send "Screenshot saved to clipboard" \
|
notify-send "Screenshot saved to clipboard" \
|
||||||
-a grim -c screenshot -u low -t 3000
|
-a grim -c screenshot -u low -e
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ if test $(wl-paste -l) = "image/png"; then
|
||||||
name=$(date '+%Y-%m-%d_%H-%M-%S').png
|
name=$(date '+%Y-%m-%d_%H-%M-%S').png
|
||||||
wl-paste -t "image/png" > ~/Pictures/"$name"
|
wl-paste -t "image/png" > ~/Pictures/"$name"
|
||||||
notify-send "Image stored at $name" \
|
notify-send "Image stored at $name" \
|
||||||
-a grim -c screenshot -u low -t 3000
|
-a grim -c screenshot -u low
|
||||||
else
|
else
|
||||||
notify-send "No image in clipboard" \
|
notify-send "No image in clipboard" \
|
||||||
-a grim -c screenshot -u low -t 3000
|
-a grim -c screenshot -u low -t 2000 -e
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
if region="$(slurp)"; then
|
if region="$(slurp)"; then
|
||||||
grim -g "$region" - | wl-copy
|
grim -g "$region" - | wl-copy
|
||||||
notify-send "Screenshot saved to clipboard" \
|
notify-send "Screenshot saved to clipboard" \
|
||||||
-a grim -c screenshot -u low -t 3000
|
-a grim -c screenshot -u low -e
|
||||||
else
|
else
|
||||||
notify-send "Screenshot cancelled" \
|
notify-send "Screenshot cancelled" \
|
||||||
-a grim -c screenshot -u low -t 3000
|
-a grim -c screenshot -u low -t 2000 -e
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue