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";