You don't need to mouse to copy command result to clipboard. A very simple cli tool to setting of the X selection from stdin.
It is very similar to xclip without pasting/getting data from clipboard functionalities.
Type your command and then use vertical bar character with xcp (e.g: ls -A1 | grep -E '\.sh|\.py' | xcp
) to copy previous command result to clipboard.