diff options
| author | LM-LCL <hello@exaltedelite.club> | 2023-09-01 16:08:11 +0200 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2023-09-01 16:08:11 +0200 |
| commit | 6a74dabb89e9159968b44f6378f474e27f8ac095 (patch) | |
| tree | 2c063862177131c4c19f84fff22336e64b8a222e | |
| parent | 1bf4a5f5aa49a28022eef0df0b53106c7be2971d (diff) | |
externalpipe scripts update
| -rwxr-xr-x | st-copyout | 2 | ||||
| -rwxr-xr-x | st-urlhandler | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 |
