Files
nixy/home/system/clipman/default.nix
2025-07-16 20:14:43 +02:00

15 lines
490 B
Nix

# Clipman allows you to save and retrieve clipboard history.
{pkgs, ...}: let
clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" ''
clipman clear --all
'';
clipboard = pkgs.writeShellScriptBin "clipboard" ''
clipman pick --tool=wofi
'';
in {
wayland.windowManager.hyprland.settings.exec-once = ["${clipboard-clear}" "wl-paste -t text --watch clipman store"];
home.packages = with pkgs; [clipman clipboard clipboard-clear];
services.clipman.enable = true;
}