diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-16 00:45:46 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-16 00:45:46 +0200 |
commit | 8d71d81192d080730582dcf97c7e84c95f20e2e6 (patch) | |
tree | 5fa45be6158587d44c424b137dbb483800fc03d8 /.local/bin/scst | |
parent | d545842d954ecd56a8afb634fdecdb6cd15f9415 (diff) |
scst: Switch from swappy to satty
Diffstat (limited to '.local/bin/scst')
-rwxr-xr-x | .local/bin/scst | 19 |
1 files changed, 10 insertions, 9 deletions
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 } |