From ba699a120905c225d813e31d9625039d5ec9477e Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 25 May 2023 11:53:00 -0700 Subject: [PATCH] i3: disable middle mouse paste --- modules/i3/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/i3/default.nix b/modules/i3/default.nix index f5ef213..6557fd5 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -10,6 +10,7 @@ in with theme.colors; { wmctrl # For rofi power menu xborders # Active window borders maim xdotool unclutter # Active window screenshots + xsel # Disable middle mouse paste ]; # Screenshots @@ -82,6 +83,16 @@ in with theme.colors; { always = true; notification = false; } + { + # Disable middle mouse paste + # https://unix.stackexchange.com/a/501445 + # Other solutions such as the xbindkeys approach + # will break other functionality, such as panning + # https://unix.stackexchange.com/a/277488 + command = "(while true; do xsel -fin < /dev/null; done) &"; + always = true; + notification = false; + } ]; keybindings = lib.mkOptionDefault { "${mod}+Return" = "exec kitty";