mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-08 22:05:06 +02:00
feat: adjust wayland related settings for chromium & vscode
This commit is contained in:
@@ -39,12 +39,13 @@
|
|||||||
google-chrome = {
|
google-chrome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
# https://wiki.archlinux.org/title/Chromium#Native_Wayland_support
|
||||||
commandLineArgs = [
|
commandLineArgs = [
|
||||||
|
"--ozone-platform-hint=auto"
|
||||||
|
"--ozone-platform=wayland"
|
||||||
# make it use GTK_IM_MODULE if it runs with Gtk4, so fcitx5 can work with it.
|
# make it use GTK_IM_MODULE if it runs with Gtk4, so fcitx5 can work with it.
|
||||||
# (only supported by chromium/chrome at this time, not electron)
|
# (only supported by chromium/chrome at this time, not electron)
|
||||||
"--gtk-version=4"
|
"--gtk-version=4"
|
||||||
"--enable-features=UseOzonePlatform"
|
|
||||||
"--ozone-platform=wayland"
|
|
||||||
# make it use text-input-v1, which works for kwin 5.27 and weston
|
# make it use text-input-v1, which works for kwin 5.27 and weston
|
||||||
"--enable-wayland-ime"
|
"--enable-wayland-ime"
|
||||||
|
|
||||||
@@ -67,12 +68,16 @@
|
|||||||
(pkgs.vscode.override
|
(pkgs.vscode.override
|
||||||
{
|
{
|
||||||
isInsiders = true;
|
isInsiders = true;
|
||||||
|
# https://wiki.archlinux.org/title/Wayland#Electron
|
||||||
commandLineArgs = [
|
commandLineArgs = [
|
||||||
# "--disable-gpu"
|
"--ozone-platform-hint=auto"
|
||||||
# make it use text-input-v1, which works for kwin 5.27 and weston
|
|
||||||
"--enable-features=UseOzonePlatform"
|
|
||||||
"--ozone-platform=wayland"
|
"--ozone-platform=wayland"
|
||||||
|
# make it use GTK_IM_MODULE if it runs with Gtk4, so fcitx5 can work with it.
|
||||||
|
# (only supported by chromium/chrome at this time, not electron)
|
||||||
|
"--gtk-version=4"
|
||||||
|
# make it use text-input-v1, which works for kwin 5.27 and weston
|
||||||
"--enable-wayland-ime"
|
"--enable-wayland-ime"
|
||||||
|
|
||||||
# TODO: fix https://github.com/microsoft/vscode/issues/187436
|
# TODO: fix https://github.com/microsoft/vscode/issues/187436
|
||||||
# still not works...
|
# still not works...
|
||||||
"--password-store=gnome" # use gnome-keyring as password store
|
"--password-store=gnome" # use gnome-keyring as password store
|
||||||
|
|||||||
Reference in New Issue
Block a user