Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

any scripting language will do, to check when the clipboard (both primary and clipboard) contents change, so that specific actions can be executed.

share|improve this question

You can access the Gtk Clipboard by a gtk script wrapper such as Pygtk for Python. It has functions for waiting for different kinds of clipboard input while keeping the main event loop going. Please see the Pygtk reference or this blogpost for example code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.