Jump to content

Clipboard: Difference between revisions

From Official NixOS Wiki
Phobos (talk | contribs)
m Clarified Clipboard Managers
add links for listed clipboard managers
 
Line 5: Line 5:


* [https://www.cliphist.com/ cliphist]
* [https://www.cliphist.com/ cliphist]
* clipman
* [https://github.com/NikitaBeloglazov/clipman clipman]
* wl-clip-persist
* [https://github.com/Linus789/wl-clip-persist wl-clip-persist]
* clipse
* [https://github.com/savedra1/clipse clipse]


== Installation ==
== Installation ==

Latest revision as of 19:41, 2 May 2026

The clipboard is a facility used for short-term data storage and/or data transfer between documents or applications, via copy and paste operations. - Wikipedia page on Clipboard (Computing)

Clipboard Managers

Clipboard managers provide additional features such as clipboard history or synchronization. Options supported by NixOS include (but are not limited to):

Installation

Example of installation for cliphist, find additional packages here: https://search.nixos.org/packages.

❄︎ /etc/nixos/configuration.nix
environment.systemPackages =  [
  pkgs.cliphist
];

Home Manager

Cliphist

Options may be found at Home Manager - services.cliphist. Example usage shown below:

❄︎ /etc/nixos/home.nix
services.cliphist = {

      enable = true;

      # A Wayland session
      systemdTargets = ["config.wayland.systemd.target"];

      # Sway Target 
      # if using make sure that:
      # "wayland.windowManager.sway.systemd.enable = true;" is set
      #systemdTargets = ["sway-session.target"];

      extraOptions = [
        "-max-dedupe-search"
        "10"
        "-max-items"
        "500"
      ];
      allowImages = true;

    };