From 2f23d916f5728f32c513fbf1002d16ad5a8ea54f Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 3 Dec 2023 13:03:57 +0000 Subject: [PATCH] sxmo: disable xwayland --- hosts/modules/gui/sxmo/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/modules/gui/sxmo/default.nix b/hosts/modules/gui/sxmo/default.nix index 26aae493c..df4fab8a9 100644 --- a/hosts/modules/gui/sxmo/default.nix +++ b/hosts/modules/gui/sxmo/default.nix @@ -307,7 +307,12 @@ in # these could be added, but i don't see much benefit. font = "pango:monospace 10"; mod = "Mod1"; # prefer Alt - # xwayland = false; # disable to reduce RAM usage. N.B.: xwayland is needed for electron apps! + # about xwayland: + # - required by many electron apps, though some electron apps support NIXOS_OZONE_WL=1 for native wayland. + # - when xwayland is enabled, KOreader incorrectly chooses the X11 backend + # -> slower; blurrier + # - xwayland uses a small amount of memory (like 30MiB, IIRC?) + xwayland = false; workspace_layout = "tabbed"; brightness_down_cmd = "sxmo_brightness.sh down";