diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 08c06e2..a6fc8c4 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -10,8 +10,19 @@ in with theme.colors; { wmctrl # For rofi power menu xborders # Active window borders maim xdotool unclutter # Active window screenshots + xbindkeys xsel xdotool # Disable middle mouse paste ]; + home.file = { + # Disable middle mouse paste + # May require running xbindkeys -p first time after rebuild + # https://unix.stackexchange.com/a/277488 + ".xbindkeysrc".text = '' + "echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys" + b:2 + Release + ''; + }; + # Screenshots services.flameshot = { enable = true;