From 4c86be25f4213425e2f7aa2d63180beff67b763c Mon Sep 17 00:00:00 2001 From: Peritia Date: Tue, 3 Mar 2026 09:25:33 +0100 Subject: [PATCH] Use Wofi instead --- nixosVista/homeManager/cliphist/main.nix | 40 ++++++++++++------------ nixosVista/homeManager/default.nix | 1 + 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/nixosVista/homeManager/cliphist/main.nix b/nixosVista/homeManager/cliphist/main.nix index d50ef9a..ac480ad 100644 --- a/nixosVista/homeManager/cliphist/main.nix +++ b/nixosVista/homeManager/cliphist/main.nix @@ -4,37 +4,37 @@ pkgs, nixosVista, ... -}: - -{ +}: { config = lib.mkIf nixosVista.enable { - - environment.systemPackages = with pkgs; [ + home.packages = with pkgs; [ wl-clipboard cliphist - rofi + wofi ]; - ########################################################## - # XDG Portal (IMPORTANT for Firefox / Flatpak) - ########################################################## + services.cliphist = { + enable = true; - xdg.portal.enable = true; - xdg.portal.extraPortals = [ - pkgs.xdg-desktop-portal-hyprland - ]; - - services.cliphist.enable = true; + # A Wayland session + systemdTargets = ["graphical-session.target"]; + extraOptions = [ + "-max-dedupe-search" + "10" + "-max-items" + "500" + ]; + allowImages = true; + }; nixosVista.hyprland.fragments.internalClipboard = '' ############################################################ # Clipboard ############################################################ - exec-once = wl-paste --type text --watch cliphist store - exec-once = wl-paste --type image --watch cliphist store - - bind = $mainMod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy + # "services.cliphist.enable = true;" does this + #exec-once = wl-paste --type text --watch cliphist store + #exec-once = wl-paste --type image --watch cliphist store + bind = $mainMod, V, exec, cliphist list | wofi --dmenu --prompt "Clipboard" | cliphist decode | wl-copy ''; }; -} \ No newline at end of file +} diff --git a/nixosVista/homeManager/default.nix b/nixosVista/homeManager/default.nix index f33b537..8a83a34 100644 --- a/nixosVista/homeManager/default.nix +++ b/nixosVista/homeManager/default.nix @@ -5,6 +5,7 @@ ... }: { imports = [ + ./cliphist ./hyprland ./waybar ./wofi