Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable middle click / primary selection #2425

Open
digitalsignalperson opened this issue Aug 7, 2024 · 3 comments
Open

Disable middle click / primary selection #2425

digitalsignalperson opened this issue Aug 7, 2024 · 3 comments
Milestone

Comments

@digitalsignalperson
Copy link

I couldn't find anything in the settings for this. But do see where support was added #447

Maybe for reference this issue was adding an option to disable it in sway: swaywm/sway#4511

Also it's an option in KDE settings.

It can seemingly be a decisive issue for linux users. Some strongly for middle click paste, some strongly against. For me it messes with me having it on, frequently ending up with pieces of clipboard randomly in my text files (maybe an accidental middle click while scrolling, or trying to close a tab), and also there's the chance of me accidentally pasting sensitive info in a random webpage/form/app

@killown
Copy link
Contributor

killown commented Aug 8, 2024

in wayfire.ini go for [command] section and create a new binding:

command_disable_midle_click = lol
binding_disable_midle_click = BTN_MIDDLE

This binding maps the middle mouse button to the command which does nothing

@ammen99
Copy link
Member

ammen99 commented Aug 8, 2024

in wayfire.ini go for [command] section and create a new binding:

command_disable_midle_click = lol binding_disable_midle_click = BTN_MIDDLE

This binding maps the middle mouse button to the command which does nothing

That's an interesting trick, but there are cases where you need middle button, for example blender :)

@killown
Copy link
Contributor

killown commented Aug 8, 2024

in wayfire.ini go for [command] section and create a new binding:
command_disable_midle_click = lol binding_disable_midle_click = BTN_MIDDLE
This binding maps the middle mouse button to the command which does nothing

That's an interesting trick, but there are cases where you need middle button, for example blender :)

pip install wayfire

and

from wayfire import WayfireSocket
from wayfire.extra.stipc import Stipc
sock = WayfireSocket()
stipc = Stipc(sock)
stipc.click_button("BTN_MIDDLE", "release")

the middle click still will work but won't paste anything, so he could bind this in [command]

@ammen99 ammen99 added this to the pre-1.0 milestone Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants