xselection

Mike Massonnet mmassonnet at xfce.org
Wed Feb 29 10:25:31 CET 2012


Hi,

2012/2/27 Ulli Horlacher <framstag at rus.uni-stuttgart.de>:
> Is there a hook for xselection access?
>
> I want to start a program which will save the xselection clipboard text
> to a file whenever its contens has changed.
>
> Polling xselection every x seconds via xclip is not very effizient :-}

Small code snippet available here:
http://bubbie.mmassonnet.info/~mike/pub/xfce/xseltofile.py

It's Python, just so you don't need to compile it ;)

Otherwise you can install a small plugin that does this job for you
like xfce4-clipboard-plugin.

Mike


More information about the Xfce mailing list