Workflows for quickly knowing important copies were successful

30 views
Skip to first unread message

Scott Kostyshak

unread,
Jun 8, 2021, 1:20:45 PM6/8/21
to co...@googlegroups.com
As noted in the change log of 3.12.0, the icon snip action is gone
because of performance issues. I realize now that I was using it (partly
subconsciously) as part of my workflow. When I was copying something
important, I would look up to make sure the snip happened. I'm trying to
replace this workflow. The following are possibilities:

1. Use notifications (file > preferences > notifications).
* These work well, but I don't want to be notified on every copy. What
I liked about the snip is that I didn't notice the snip when I
wasn't looking at it. It was there when I wanted to look for it
(when I was copying something important).

2. Do they old "cut and paste" trick.
* This way, if the cut doesn't work I will realize it. This is not too
annoying to get used to, but it doesn't work when copying read-only
text (e.g., from a webbrowser). Further, even if the cut is successful,
there's still the (minor) concern that CopyQ did not receive it.

I have no idea if the following is possible:

3. Is it possible to alter the icon with a hook?
* The snip has performance issues, but when we do "Disable Clipboard
Storing", this dims the icon. Does that mean that dimming the icon
does not have performance issues? Or perhaps since this is only done
infrequently, the small performance hit does not add up? If changing
the alpha does not affect performance, is it also possible to change
the hue by chance without affecting performance? I wonder if a
hackish way to achieve what I want would be to use a script that
after every copy it disables the clipboard storage (and thus dims
the icon) and then enables it. Perhaps this "blink" might be what
I'm after, although it might be too subtle for my poor eyesight to
notice.

I'm curious about what others do. Do you just not worry about a
potentially unsuccessful copy, or do you get used to notifications on
every copy?

Thanks,
Scott

Lukáš Holeček

unread,
Jun 14, 2021, 2:09:03 AM6/14/21
to CopyQ
Hi Scott,

The performance issues happened on Gnome I believe. Hopefully they fixed it, but there were other reasons to remove the "icon animation" - some users wanted to disable this, it broke often (can be only manually tested), dropping the feature simplifies the app code and it is possible to use scripting instead now anyway (thought currently only to change icon color or a tag/label).

Here is my try to replace the icon snip feature with a command: https://github.com/hluk/copyq-commands/tree/master/Scripts#indicate-copy-in-icon


Personally, I like having notification popups which are easier to notice and are not overly disruptive (on my desktop setup).

Hope this helps.

Lukas


--
You received this message because you are subscribed to the Google Groups "CopyQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copyq+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/copyq/20210608172043.ia253dj7wlyxgdh3%40poole.

Scott Kostyshak

unread,
Jun 19, 2021, 3:43:52 PM6/19/21
to CopyQ
Thank you, Lukáš!

I will play around with those options. Thanks also for mentioning that your personal workflow is having the notifications. Perhaps I will get used to them. Is it possible to avoid displaying the notification when an application exits and empties the clipboard? I find those the most distracting since they don't result from me copying something.

Thanks,
Scott
> To view this discussion on the web visit https://groups.google.com/d/msgid/copyq/CAAMGTDzEDjCki%2BwxMDE_Wq1X3TZHX_a7_PAo%3DrF151tTuCih7g%40mail.gmail.com.

Lukáš Holeček

unread,
Jun 21, 2021, 3:41:54 AM6/21/21
to CopyQ
On Sat, Jun 19, 2021 at 9:43 PM Scott Kostyshak <scott.k...@gmail.com> wrote:
Thank you, Lukáš!

I will play around with those options. Thanks also for mentioning that your personal workflow is having the notifications. Perhaps I will get used to them. Is it possible to avoid displaying the notification when an application exits and empties the clipboard? I find those the most distracting since they don't result from me copying something.

Following command should avoid showing notifications for empty clipboard:

[Command]
Command="
    var showDataNotification_ = showDataNotification;
    global.showDataNotification = function() {
        if (!hasClipboardFormat(mimeHidden) && hasData())
            showDataNotification_();
    }"
Icon=\xf15b
IsScript=true
Name=Do Not Notify on Empty Clipboard

 

Scott Kostyshak

unread,
Jun 21, 2021, 8:01:35 PM6/21/21
to CopyQ
On Mon, Jun 21, 2021 at 09:41:47AM +0200, Lukáš Holeček wrote:
> On Sat, Jun 19, 2021 at 9:43 PM Scott Kostyshak <scott.k...@gmail.com>
> wrote:
>
> > Thank you, Lukáš!
> >
> > I will play around with those options. Thanks also for mentioning that
> > your personal workflow is having the notifications. Perhaps I will get used
> > to them. Is it possible to avoid displaying the notification when an
> > application exits and empties the clipboard? I find those the most
> > distracting since they don't result from me copying something.
> >
>
> Following command should avoid showing notifications for empty clipboard:
>
> [Command]
> Command="
> var showDataNotification_ = showDataNotification;
> global.showDataNotification = function() {
> if (!hasClipboardFormat(mimeHidden) && hasData())
> showDataNotification_();
> }"
> Icon=\xf15b
> IsScript=true
> Name=Do Not Notify on Empty Clipboard

Thanks, Lukáš!

Scott

Scott Kostyshak

unread,
Jun 21, 2021, 10:50:12 PM6/21/21
to CopyQ
Would it be possible to avoid giving a notification after I select an item in CopyQ's history? Currently, since it changes the current clipboard, it (understandably) gives a notification.

No problem if this "fine-tuning" of the notifications is not recommended. I have a feeling that I'll get used to them.

Thanks,
Scott

Lukáš Holeček

unread,
Jun 22, 2021, 12:50:29 PM6/22/21
to CopyQ
Fine-tuning CopyQ through scripting is definitely recommended. :)

Avoiding notification on copying items from CopyQ is slight variation of the previous command:

[Command]
Command="
    var onOwnClipboardChanged_ = onOwnClipboardChanged;
    global.onOwnClipboardChanged = function() {
        var showDataNotification_ = showDataNotification;
        global.showDataNotification = function() {};
        onOwnClipboardChanged_();
        global.showDataNotification = showDataNotification_;
    }"
Icon=\xf15b
IsScript=true
Name=Do Not Notify on Item Copy


--
You received this message because you are subscribed to the Google Groups "CopyQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to copyq+un...@googlegroups.com.

Scott Kostyshak

unread,
Jun 22, 2021, 5:20:29 PM6/22/21
to CopyQ
Works great, thank you!

Scott
> To view this discussion on the web visit https://groups.google.com/d/msgid/copyq/CAAMGTDy%2By1i86p%3DHEWLeUHN7_PLe0OyLX%3Dy649Hqgxk-zt1MBQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages