From 10a658bd5bbdbdeb034092578121ad609fbd36db Mon Sep 17 00:00:00 2001 From: James Patrick Date: Tue, 6 Oct 2020 23:39:43 -0400 Subject: [PATCH] Sanitized cliphistory. --- sway/scripts/clipboard | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(){