I configured copyq to work exactly like this, so it's doable.