summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLM-LCL <hello@exaltedelite.club>2023-09-01 16:08:11 +0200
committerLM-LCL <hello@exaltedelite.club>2023-09-01 16:08:11 +0200
commit6a74dabb89e9159968b44f6378f474e27f8ac095 (patch)
tree2c063862177131c4c19f84fff22336e64b8a222e
parent1bf4a5f5aa49a28022eef0df0b53106c7be2971d (diff)
externalpipe scripts update
-rwxr-xr-xst-copyout2
-rwxr-xr-xst-urlhandler4
2 files changed, 3 insertions, 3 deletions
diff --git a/st-copyout b/st-copyout
index 98144a8..39e0cf0 100755
--- a/st-copyout
+++ b/st-copyout
@@ -5,6 +5,6 @@ trap 'rm "$tmpfile"' 0 1 15
sed -n "w $tmpfile"
sed -i 's/\x0//g' "$tmpfile"
data="$(tac "$tmpfile")"
-[ ! -z "$data" ] && printf "%s" "$data" | dmenu -i -l 15 -p 'Select Line' \
+[ ! -z "$data" ] && printf '%s' "$data" | dmenu -i -l 15 -p 'Select Line' \
| xargs \
| xclip -r -sel c
diff --git a/st-urlhandler b/st-urlhandler
index 1ed2b23..d6deecf 100755
--- a/st-urlhandler
+++ b/st-urlhandler
@@ -7,5 +7,5 @@ urls="$(sed 's/.*│//g' | tr -d '\n' \
| uniq \
| sed "s/\(\.\|,\|;\|\!\\|\?\)$//;s/^www./http:\/\/www\./")"
-[ ! -z "$urls" ] && echo "$urls" | dmenu -i -l 15 -p 'Select URL' \
- | xclip -r -sel c
+[ ! -z "$urls" ] && printf '%s' "$urls" | dmenu -i -l 15 -p 'Select URL' \
+ | xclip -r -sel c