Skip to content

Instantly share code, notes, and snippets.

@levihuayuzhang
Created December 29, 2023 12:36
Show Gist options
  • Save levihuayuzhang/4e239874b37cdf975c2153d33f5a7135 to your computer and use it in GitHub Desktop.
Save levihuayuzhang/4e239874b37cdf975c2153d33f5a7135 to your computer and use it in GitHub Desktop.
Run Chromium/Electron under Wayland natively
# ~/.config/chromium-flags.conf
--use-gl=egl
--ignore-gpu-blocklist
--enable-gpu-rasterization
--ozone-platform=wayland
--gtk-version=4
--enable-features=TouchpadOverscrollHistoryNavigation
--disable-features=WaylandFractionalScaleV1
# ~/.config/code-flags.conf
--ozone-platform-hint=wayland
--enable-features=WaylandWindowDecorations
--enable-webrtc-pipewire-capturer
--disable-features=WaylandFractionalScaleV1 # for hidpi screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment