From 8d71d81192d080730582dcf97c7e84c95f20e2e6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 16 Aug 2024 00:45:46 +0200 Subject: scst: Switch from swappy to satty --- .local/bin/scst | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to '.local') diff --git a/.local/bin/scst b/.local/bin/scst index 46bdcbe..94da565 100755 --- a/.local/bin/scst +++ b/.local/bin/scst @@ -5,8 +5,8 @@ set -e NOTIFY_SHORT `basename $args[0] func xnotify { notify ( - 'Screenshot Copied' - 'Screenshot successfully copied to the clipboard' + 'Screenshot Saved' + "The screenshot ‘$filebase’ was successfully saved" -i $filename ) } @@ -38,14 +38,15 @@ if $(fflag:false) { set opt `echo "Copy screenshot\nEdit- and copy screenshot" | { osel || true } if test $opt = 'Copy screenshot' { wl-copy <$filename - xnotify -} else if test $opt = 'Edit- and copy screenshot' { - swappy -f $filename -o - | tee >{wl-copy} | sponge $filename - xnotify -} else { notify ( - 'Screenshot Saved' - "The screenshot ‘$filebase’ was successfully saved" + 'Screenshot Copied' + 'Screenshot successfully copied to the clipboard' -i $filename ) +} else if test $opt = 'Edit- and copy screenshot' { + satty -f $filename --save-after-copy + xnotify + # swappy -f $filename -o - | tee >{wl-copy} | sponge $filename +} else { + xnotify } -- cgit v1.2.3