Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.windows.x > #614

Re: Possible to be notified when the clipboard contents changes?

From Eli the Bearded <*@eli.users.panix.com>
Newsgroups comp.windows.x
Subject Re: Possible to be notified when the clipboard contents changes?
Date 2026-02-23 21:08 +0000
Organization Some absurd concept
Message-ID <eli$2602231607@qaz.wtf> (permalink)
References <10nhjpd$2hjk6$2@news.xmission.com> <ydikbnqz2m.fsf@UBEblock.psr.com>

Show all headers | View raw


In comp.windows.x, Winston <wbe@UBEBLOCK.psr.com.invalid> wrote:
> gazelle@shell.xmission.com (Kenny McCormack) writes:
>> I have a shell script that needs to do something if certain text shows up
>> on the X clipboard.  It currently uses "xsel" to access the clipboard, but
>> needs to do polling in a loop, like this:\
...
> I don't know for sure, but, for compiled code, have a look at:
>         man 3 XInternAtom
>         man 3 XGetWindowProperty
> and PropertyNotify events
> for the atoms 0(CUT_BUFFER0) and XA_PRIMARY.

The xev I have installed does not show PropertyNotify for those atoms.
Hacking xev to to catch them would be a good start to writing a C
program that monitors the clipboard.

Elijah
------
has hacked xev for his own purposes in the past

Back to comp.windows.x | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Possible to be notified when the clipboard contents changes? gazelle@shell.xmission.com (Kenny McCormack) - 2026-02-23 13:13 +0000
  Re: Possible to be notified when the clipboard contents changes? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2026-02-23 10:06 -0500
    Re: Possible to be notified when the clipboard contents changes? Eli the Bearded <*@eli.users.panix.com> - 2026-02-23 21:08 +0000
      Re: Possible to be notified when the clipboard contents changes? gazelle@shell.xmission.com (Kenny McCormack) - 2026-02-23 21:19 +0000
      Re: Possible to be notified when the clipboard contents changes? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2026-02-23 17:17 -0500
        Re: Possible to be notified when the clipboard contents changes? gazelle@shell.xmission.com (Kenny McCormack) - 2026-03-02 22:02 +0000

csiph-web