wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Disable middle click / primary selection

Open digitalsignalperson opened this issue 1 year ago • 3 comments

I couldn't find anything in the settings for this. But do see where support was added https://github.com/WayfireWM/wayfire/issues/447

Maybe for reference this issue was adding an option to disable it in sway: https://github.com/swaywm/sway/issues/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

digitalsignalperson avatar Aug 07 '24 22:08 digitalsignalperson

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

killown avatar Aug 08 '24 14:08 killown

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 :)

ammen99 avatar Aug 08 '24 14:08 ammen99

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]

killown avatar Aug 08 '24 14:08 killown