Sanitized cliphistory.

This commit is contained in:
James Patrick 2020-10-06 23:39:43 -04:00
parent 4d25b2e7b3
commit 10a658bd5b

View File

@ -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(){