summaryrefslogtreecommitdiff
path: root/scripts/desktop/sp
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-17 12:22:00 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-17 12:32:42 -0400
commit544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (patch)
tree1caa87664ea4937c5f4e6e8dc83c49b3132ddd70 /scripts/desktop/sp
parent85a47287e56ba9100420246531ebea5996cc0486 (diff)
downloaddotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.gz
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.bz2
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.zip
Gentoo desktop
Diffstat (limited to 'scripts/desktop/sp')
-rwxr-xr-xscripts/desktop/sp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/desktop/sp b/scripts/desktop/sp
index 19d38a1..6ccdfce 100755
--- a/scripts/desktop/sp
+++ b/scripts/desktop/sp
@@ -1,6 +1,7 @@
#! /usr/bin/env sh
if [ $# -eq 0 ]; then
- wl-paste | aspell -a
+ INPUT=$(wl-paste)
else
- echo "$@" | aspell -a
+ INPUT="$@"
fi
+echo $INPUT | aspell -a | tee /dev/tty | awk 'FNR==2{ printf $5}' | sed 's/,//' | wl-copy