I find now that I can streamline the "capitalize this" command by cutting out the last couple of xclip things, like this:

xdotool key Control+c &amp;&amp; $KEYPRESS "$(xclip -o | sed 's/\(.*\)/\L\1/' | sed -r 's/\&amp;lt;./\U&amp;/g')"