I am trying to be able to save/log all clipboard selection copies to a clipboard_histroy.log file. I want this to be able to simply append each copied selection to the log file but at the same time still simulate ctrl+c just as your pc normally would, except in this case there is an additional xclip command going on afterwards...
I am binding the below command to the keyboard shortcut (CTRL+C) by setting it in Applications >> Settings >> Keyboard within my Manjaro Linux XFCE4 environment.
Here is what I have so far, but nothing seems to work about it.
xdotool key ctrl+c && xclip -selection clipboard -o >> /home/user/.logs/clipboard_history.log