This is a simple python script that logs the primary selection of X server
Requirements :
- You need to have both python3 and xclip installed on your system

Note - The ".log_primary" folder will not be listed(visible) under your home directory. Use ls -a on the terminal or check "Show Hidden Items" in your file explorer if such an option is available :)