linux: Added scriptable function copySelection()
Use automatic commands for updating title and item list

Clipboard change invokes automatic commands for updating window
title, tray tooltip, showing notification, adding new
clipboard items to list and synchronizing with X11 selection.
tests: Fix clearing settings