summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-16 00:45:46 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-16 00:45:46 +0200
commit8d71d81192d080730582dcf97c7e84c95f20e2e6 (patch)
tree5fa45be6158587d44c424b137dbb483800fc03d8 /.local
parentd545842d954ecd56a8afb634fdecdb6cd15f9415 (diff)
scst: Switch from swappy to satty
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/scst19
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
}