mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
15 lines
490 B
Nix
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;
|
|
}
|