faq: add method to disable middle click paste
This commit is contained in:
parent
662de3cf4e
commit
04e48f4959
|
@ -247,13 +247,18 @@ env = XDG_CURRENT_DESKTOP,Hyprland
|
||||||
|
|
||||||
### How to disable middle-click paste?
|
### How to disable middle-click paste?
|
||||||
|
|
||||||
You can simply intercept the middle-click action all together, via hyprland
|
You can intercept the bind to empty the primary buffer with wl-copy before
|
||||||
binds for example. The drawbacks to this solution are that 1. it disables the
|
forwarding the input to the focused application by adding this to your config:
|
||||||
rest of the functionality of the middle-click action, such as auto scroll,
|
|
||||||
closing browser tabs, etc., and 2. many applications (such as kitty) manually
|
`bindn = , mouse:274, exec, wl-copy -pc`
|
||||||
intercept the middle-click events and bind them to paste from the primary buffer
|
|
||||||
themselves, bypassing the solution altogether. For this solution, add this bind
|
Alternatively, you can simply intercept the middle-click action all together,
|
||||||
to your config:
|
via hyprland binds for example. The drawbacks to this solution are that 1. it
|
||||||
|
disables the rest of the functionality of the middle-click action, such as auto
|
||||||
|
scroll, closing browser tabs, etc., and 2. many applications (such as kitty)
|
||||||
|
manually intercept the middle-click events and bind them to paste from the
|
||||||
|
primary buffer themselves, bypassing the solution altogether. For this solution,
|
||||||
|
add this bind to your config:
|
||||||
|
|
||||||
`bind = , mouse:274, exec, ;`. Note that the exact bindcode may vary, so you may
|
`bind = , mouse:274, exec, ;`. Note that the exact bindcode may vary, so you may
|
||||||
want to check it with `wev` first.
|
want to check it with `wev` first.
|
||||||
|
|
Loading…
Reference in New Issue