Wayland: Difference between revisions

From NixOS Wiki
imported>Winny
noticed somebody linked this article in a chat, add it here
imported>Qyriad
add note about NIXOS_OZONE_WL
Line 6: Line 6:


[[Sway]] is a i3-like compositor.
[[Sway]] is a i3-like compositor.
= Applications =
== Electron and Chromium ==
<!-- I kept getting META error when trying {{ic|NIXOS_OZONE_WL=1}}, and replacing the equals with &equals; didn't work either — does anyone know how to markup this correctly? -->
As of NixOS 22.05 ("Quokka"), you can enable Ozone Wayland support in [[Chromium]] and [[Electron]] based applications by setting the environment variable <code>NIXOS_OZONE_WL=1</code>. For example, in a {{ic|configuration.nix}}:
<syntaxhighlight lang="nix">
sessionVariables.NIXOS_OZONE_WL = "1";
</syntaxhighlight>

Revision as of 21:45, 21 August 2023

Compositors

Sway

Sway is a i3-like compositor.

Applications

Electron and Chromium

As of NixOS 22.05 ("Quokka"), you can enable Ozone Wayland support in Chromium and Electron based applications by setting the environment variable NIXOS_OZONE_WL=1. For example, in a configuration.nix:

sessionVariables.NIXOS_OZONE_WL = "1";