From 41ff8ba3d8ee89c49458cc601c7d879737e145c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Sun, 25 Oct 2020 13:05:33 +0100 Subject: [PATCH] Add sound to xfce4-screenshooter --- .../xfce4-keyboard-shortcuts.xml | 15 +++++++-------- share/kali-themes/xfce4-screenshooter | 12 ++++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100755 share/kali-themes/xfce4-screenshooter diff --git a/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml b/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml index 79ecaca6..201e4e86 100644 --- a/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml +++ b/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml @@ -13,17 +13,16 @@ - - - - - - - - + + + + + + + diff --git a/share/kali-themes/xfce4-screenshooter b/share/kali-themes/xfce4-screenshooter new file mode 100755 index 00000000..47f49a34 --- /dev/null +++ b/share/kali-themes/xfce4-screenshooter @@ -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