From 1f955e5c5c62184be74689ae14f1a63860a46501 Mon Sep 17 00:00:00 2001 From: Agent00Ming <107314235+Agent00Ming@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:23:33 -0400 Subject: [PATCH] FAQ: update middle_click_paste (#703) Co-authored-by: Agent_00Ming --- pages/FAQ/_index.md | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/pages/FAQ/_index.md b/pages/FAQ/_index.md index bc7b0f8..cbddbe6 100644 --- a/pages/FAQ/_index.md +++ b/pages/FAQ/_index.md @@ -241,34 +241,7 @@ env = XDG_CURRENT_DESKTOP,Hyprland ### How to disable middle-click paste? -You can simply intercept the middle-click action all together via Hyprland -binds. However, there are drawbacks to this solution. It disables the -rest of the functionality of the middle-click action, such as auto scroll, -closing browser tabs, etc. Additionally, 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 -want to check it with `wev` first. - -
- Alternative method using wl-paste (warning: major power consumption) - -The middle-click paste action pastes from a separate buffer (primary buffer) -than what the regular clipboard uses (clipboard buffer). Since the primary -buffer is unrelated to the clipboard buffer, it's easy to simply keep the -primary buffer empty, allowing the middle-click action to retain the rest of its -functionality without having anything to paste. Run the following command (in -your config with `exec-once`, for example) to achieve this: - -`wl-paste -p --watch wl-copy -p ''` (`wl-paste -p --watch` watches for changes -to the primary buffer, `wl-copy -p ''` clears the primary buffer) - -**As you can see, however, this creates an endless loop (found copied text -> -copy -> found copied text...). Therefore, this method is not recommended.** - -
+Setting `misc:middle_click_paste` to `false` disables the feature altogether with the exception of some browsers (notably firefox) having a separate built-in way of emulating that feature which has to be disabled within the browser's settings. ### How do I make Hyprland draw as little power as possible on my laptop?