i3: disable middle mouse paste

inky
Elnu 1 year ago
parent 1acbedab95
commit ba699a1209

@ -10,6 +10,7 @@ in with theme.colors; {
wmctrl # For rofi power menu wmctrl # For rofi power menu
xborders # Active window borders xborders # Active window borders
maim xdotool unclutter # Active window screenshots maim xdotool unclutter # Active window screenshots
xsel # Disable middle mouse paste
]; ];
# Screenshots # Screenshots
@ -82,6 +83,16 @@ in with theme.colors; {
always = true; always = true;
notification = false; 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 { keybindings = lib.mkOptionDefault {
"${mod}+Return" = "exec kitty"; "${mod}+Return" = "exec kitty";

Loading…
Cancel
Save