From 7b68345ead9a3f5030a5aeb7eeb2d54b9a367191 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 4 Nov 2023 23:01:55 +0100 Subject: notify: Add the notify script --- .local/bin/scst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.local/bin/scst') diff --git a/.local/bin/scst b/.local/bin/scst index f24fdb4..43ba261 100755 --- a/.local/bin/scst +++ b/.local/bin/scst @@ -2,10 +2,11 @@ set -e -notify() +xnotify() { - notify-send -a ${0##*/} -i "$filename" 'Screenshot Copied' \ - 'Screenshot successfully copied to the clipboard.' + notify ${0##*/} screenshot 'Screenshot Copied' \ + 'Screenshot successfully copied to the clipboard' \ + -i "$filename" } if [ $# -eq 1 -a "$1" = "-f" ] @@ -38,12 +39,12 @@ opt="`printf 'Copy screenshot\nEdit- and copy screenshot\n' | osel`" case "$opt" in 'Copy screenshot') wl-copy <"$filename" - notify + xnotify ;; 'Edit- and copy screenshot') swappy -f "$filename" -o - \ | pee wl-copy cat \ | sponge "$filename" - notify + xnotify ;; esac -- cgit v1.2.3