From 8265be4e2d3b82c6899a5e2d0935094120b96771 Mon Sep 17 00:00:00 2001
From: Myned <dev@bjork.tech>
Date: Thu, 20 Mar 2025 12:50:33 -0500
Subject: [PATCH] niri: disable primary clipboard

---
 options/custom/desktops/niri/misc.nix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/options/custom/desktops/niri/misc.nix b/options/custom/desktops/niri/misc.nix
index 8c5bb61..2622e4e 100644
--- a/options/custom/desktops/niri/misc.nix
+++ b/options/custom/desktops/niri/misc.nix
@@ -26,6 +26,9 @@ in {
       {
         # https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous
         programs.niri.settings = {
+          # https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingsclipboarddisable-primary
+          clipboard.disable-primary = true;
+
           # https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingscursorhide-after-inactive-ms
           cursor = with config.stylix.cursor; {
             inherit size;