diff --git a/sway/scripts/clipboard b/sway/scripts/clipboard index e25c9cc..bf8b347 100755 --- a/sway/scripts/clipboard +++ b/sway/scripts/clipboard @@ -70,7 +70,7 @@ on-select(){ local file file="$(parse-file "${result}")" wl-copy < "$file" - swaymsg exec "ydotool type \"$(wl-paste)\"" + swaymsg exec "ydotool type $(wl-paste | sed -e "s/'/'\\\\''/g; 1s/^/'/; \$s/\$/'/")" } menu(){