Created
August 3, 2019 09:05
-
-
Save hluk/dc0cef842571094daedb086d3e1aa60a to your computer and use it in GitHub Desktop.
CopyQ Command: Show clipboard owner in notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Command] | |
Command=" | |
function showOwner() { | |
popup( | |
isClipboard() ? 'Clipboard Owner' : 'Selection Owner', | |
data(mimeWindowTitle) | |
) | |
} | |
var onClipboardChanged_ = onClipboardChanged | |
global.onClipboardChanged = function() { | |
showOwner() | |
onClipboardChanged_() | |
} | |
var onOwnClipboardChanged_ = onOwnClipboardChanged | |
global.onOwnClipboardChanged = function() { | |
showOwner() | |
onOwnClipboardChanged_() | |
}" | |
Icon=\xf521 | |
IsScript=true | |
Name=Show Clipboard Owner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment