diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-04 23:01:55 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-04 23:01:55 +0100 |
commit | 7b68345ead9a3f5030a5aeb7eeb2d54b9a367191 (patch) | |
tree | 4baa41612157e017ba49c1314100e1bf04d57d6c /.local/bin/scst | |
parent | 54a957bf5b27d0d8bc73365b5f3509bff9963bda (diff) |
notify: Add the notify script
Diffstat (limited to '.local/bin/scst')
-rwxr-xr-x | .local/bin/scst | 11 |
1 files changed, 6 insertions, 5 deletions
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 |