News for hackers. Stuff that matters.
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by iovar on Thursday August 21, 2014 @06:02AM (#8206613)
Klipper of kde has had configurable actions for ages.

I've always found it to be too intrusive and I've kept it disabled.

Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by pasbesoin on Thursday August 21, 2014 @01:07PM (#8208387)
It may have a somewhat different focus (extensive and quickly accessible clipboard history), but you might find Ditto (Windows) interesting to have a look at.

http://ditto-cp.sourceforge.net/

I've missed having something similar on this Ubuntu machine I'm using. I'll have a look at CopyQ when my time frees up.

P.S. I seem to recall reading that Ditto allowed at least some level of hooking/triggering based upon content, but I never used it and I may be mis-remembering.

Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by npongratz on Thursday August 21, 2014 @08:55AM (#8207085)
Hopefully there is some consideration (somehow) for not monitoring the many passwords and passphrases that flow through clipboards. I took a quick look, but couldn't find acknowledgment.

Maybe we need a secure clipboard that guarantees (again, somehow) purging 1) immediately after a paste, and 2) after a specified time period such as 30 seconds.

Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by u02sgb on Thursday August 21, 2014 @09:15AM (#8207161)
Keepass has this feature built in after copying username/passwords.
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by webjprgm on Thursday August 21, 2014 @03:15PM (#8209086)
Could you implement that with a dot-clipboard script that looked for things that appeared password-like or username-like and then clears the clipboard after 30 seconds?
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by alistairjcbrown on Thursday August 21, 2014 @09:02AM (#8207115)
It may be worth adding a section to your readme with the dependencies you use / how it works.

I had a look at the code because I was curious about how Javascript could interact with the clipboard. I can see that you use "clipboard-watcher" which in turn uses "NodObjC" - which also explains why this is OSX only.

Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by fgribreau on Thursday August 21, 2014 @10:15AM (#8207422)
Duly noted, thanks! About clipboard-watcher, the support for windows/*nix would be fairly easy to add.
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by jmnicolas on Thursday August 21, 2014 @10:54AM (#8207614)
The "dot" part is a bit confusing, at first I thought it was something in dotnet.
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by Flenser on Thursday August 21, 2014 @06:13AM (#8206636)
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by fgribreau on Thursday August 21, 2014 @06:26AM (#8206660)
Added CopyQ in "alternatives" section, thanks!
Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by npongratz on Thursday August 21, 2014 @10:44AM (#8207570)
You might also be interested in ClipMenu for OS X as well:

https://github.com/naotaka/ClipMenu

It's a bit of a Swiss Army knife for the clipboard, and among other actions, allows for user-created Javascript to act upon clipboard contents. I don't know if the scripts can be called automatically, however.

http://www.clipmenu.com/static/images/screenshot/en/pref-act...

FWIW, the documentation says it's for OS X 10.5-10.6, but I have it running on 10.9 without issue.

Re:Dot-clipboard – Monitor your clipboard and run scripts ba... by fgribreau on Thursday August 21, 2014 @10:56AM (#8207626)
Thanks! I added ClipMenu as well :)