commit e62f90f94bd13077682d2ad3d5daed4752a3ce3a parent b097f361a2c4c16ca1e0aa294989760c9105cd13 Author: Wim Dupont <wim@wimdupont.com> Date: Fri, 22 Dec 2023 12:06:29 +0100 pclip remove newline Diffstat:
M | bin/pclip | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/pclip b/bin/pclip @@ -34,16 +34,16 @@ selected=$(printf '%s\n' "${clipboards[@]}" | "$dmenu" -fn "$font" -i -l 10 "$@" case "${selected}" in Primary*) - echo "${primary}" | $xdotool + echo -n "${primary}" | $xdotool ;; Secondary*) - echo "${secondary}" | $xdotool + echo -n "${secondary}" | $xdotool ;; Clipboard*) - echo "${clipboard}" | $xdotool + echo -n "${clipboard}" | $xdotool ;; *) - echo "Unknown selection" | $xdotool + echo -n "Unknown selection" | $xdotool ;; esac