Add sound to xfce4-screenshooter

This commit is contained in:
Daniel Ruiz de Alegría
2020-10-25 13:05:33 +01:00
parent 889cf2fbaa
commit 41ff8ba3d8
2 changed files with 19 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
paplay /usr/share/sounds/freedesktop/stereo/screen-capture.oga
if [ $# -eq 0 ]
then
FILE="Screenshot_$(date +%F_%H_%M_%S).png"
xfce4-screenshooter -fs "$(xdg-user-dir PICTURES)/$FILE"
notify-send -u normal "$FILE" -i "$(xdg-user-dir PICTURES)/$FILE"
else
xfce4-screenshooter $@
fi