Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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.