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

Linux: Option to enable MiddleClickAutoscroll #171

Open
pointydev opened this issue Oct 26, 2023 · 8 comments · May be fixed by #239
Open

Linux: Option to enable MiddleClickAutoscroll #171

pointydev opened this issue Oct 26, 2023 · 8 comments · May be fixed by #239

Comments

@pointydev
Copy link

Due to X using middle click as a keybind to paste from clipboard, Chromium disables middle click scrolling by default. However, this functionality can be re-enabled using --enable-blink-features=MiddleClickAutoscroll if a user so desires (as is my case when using XMousePasteBlock). Would be great to have an in-app option to configure this instead of having to apply it using desktop files or via the command line.

Thanks,
pointy

@CosmicHeron
Copy link

CosmicHeron commented Nov 8, 2023

Maybe an alternative could be how Visual Studio Code reads Electron flags from .config/code-flags.conf but instead make it into something like vencord-flags.conf?

Nullmatic added a commit to Nullmatic/vesktop-funnies that referenced this issue Nov 16, 2023
Nullmatic added a commit to Nullmatic/vesktop-funnies that referenced this issue Nov 16, 2023
@Nullmatic Nullmatic linked a pull request Nov 16, 2023 that will close this issue
@zoobporsor
Copy link

how do i enable autoscroll?

@TorMechia
Copy link

@zoobporsor just start vesktop with the --enable-blink-features=MiddleClickAutoscroll as provided by pointydev.

If launching from terminal, just add it as an argument.

To launch vesktop with autoscroll from desktop, just add the argument to the desktop entry. For KDE just rightclick on the vesktop entry when you search it up > edit application > application > add the argument to the "Arguments" menu entry. Steps should be similar for other desktop environments.

@Jire
Copy link

Jire commented Sep 10, 2024

@zoobporsor just start vesktop with the --enable-blink-features=MiddleClickAutoscroll as provided by pointydev.

If launching from terminal, just add it as an argument.

To launch vesktop with autoscroll from desktop, just add the argument to the desktop entry. For KDE just rightclick on the vesktop entry when you search it up > edit application > application > add the argument to the "Arguments" menu entry. Steps should be similar for other desktop environments.

Even better is making a file in ~/.config/electron-flags.conf with the flags you want, which all Electron apps will then detect. This is what's in mine:

--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto
--enable-blink-features=MiddleClickAutoscroll

But this approach still does not disable pasting with the middle-click button! If anybody has a solution for that (it might potentially be an Electron flag?) to do that would be amazing! (Oh and before you mention, I have it disabled system-wide as much as I can through GNOME Tweaks but I'm using Wayland so I can't use something like a clipboard-clear script nor would I want to do this approach as it could potentially remove important info in my clipboard!)

@Charlignon
Copy link

Charlignon commented Oct 17, 2024

A possible solution would be to port this plugin from BetterDiscord, which would enable autoscroll without the need for the blink feature flag. But this should probably be done at Vencord's level directly.

The only related issue in Vencord is this one as far as I can tell, but it has been dismissed. I'll try to reopen it with more details and see what happen.

If anybody has a solution for that (it might potentially be an Electron flag?)

@Jire Unfortunately no the electron/chromium support of this flag is very minimal outside of windows. Also this is a bit out of topic, but you can maybe try this if you haven't already

@TuxEnthusiast

This comment was marked as off-topic.

@geopic

This comment was marked as off-topic.

@TuxEnthusiast

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants