Clipboard-Any

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    This is not a "real" clipboard manager, but just an interface to the X
    selections. It has a history of just one item, either the "primary"
    selection or the "clipboard" selection. You can choose which selection
    to use via environment variable "PERL_CLIPBOARD_ANY_XCLIP_SELECTION".
    The default is the "primary" selection.

    This module provides common functions related to clipboard manager.

    Supported clipboard manager: KDE Plasma's Klipper ("klipper"),
    "parcellite", "clipit", "xclip". Support for more clipboard managers,
    e.g. on Windows or other Linux desktop environment is welcome.

NOTES
    2021-07-15 - Tested on my system (KDE Plasma 5.12.9 on Linux).

FUNCTIONS
  add_clipboard_content
    Usage:

     add_clipboard_content(%args) -> [$status_code, $reason, $payload, \%result_meta]

lib/Clipboard/Any.pm  view on Meta::CPAN


$SPEC{':package'} = {
    v => 1.1,
    summary => 'Common interface to clipboard manager functions',
    description => <<'MARKDOWN',

This module provides common functions related to clipboard manager.

Supported clipboard manager: KDE Plasma's Klipper (`klipper`), `parcellite`,
`clipit`, `xclip`. Support for more clipboard managers, e.g. on Windows or other
Linux desktop environment is welcome.

MARKDOWN
};

$SPEC{'detect_clipboard_manager'} = {
    v => 1.1,
    summary => 'Detect which clipboard manager program is currently running',
    description => <<'MARKDOWN',

Will return a string containing name of clipboard manager program, e.g.

lib/Clipboard/Any.pm  view on Meta::CPAN

selections. It has a history of just one item, either the C<primary> selection
or the C<clipboard> selection. You can choose which selection to use via
environment variable C<PERL_CLIPBOARD_ANY_XCLIP_SELECTION>. The default is the
C<primary> selection.


This module provides common functions related to clipboard manager.

Supported clipboard manager: KDE Plasma's Klipper (C<klipper>), C<parcellite>,
C<clipit>, C<xclip>. Support for more clipboard managers, e.g. on Windows or other
Linux desktop environment is welcome.

=head1 NOTES

2021-07-15 - Tested on my system (KDE Plasma 5.12.9 on Linux).

=head1 FUNCTIONS


=head2 add_clipboard_content



( run in 1.140 second using v1.01-cache-2.11-cpan-a49fcb8fa48 )