Wayland: Difference between revisions

Raboof (talk | contribs)
To have wayland work inside of QEMU, you may need to pass "-vga qxl".
DHCP (talk | contribs)
m fix formatting
 
Line 6: Line 6:


== Checking for Wayland ==
== Checking for Wayland ==
To check if you are using Wayland, run the following command {{Commands|$ echo $XDG_SESSION_TYPE}} If {{ic|wayland}} is returned, you are running Wayland
To check if you are using Wayland, run the following command
<syntaxhighlight lang=console>
$ echo $XDG_SESSION_TYPE
</syntaxhighlight>
If {{ic|wayland}} is returned, you are running Wayland


== Setup ==
== Setup ==
Line 52: Line 56:


==== Imperatively (each time an application is launched) ====
==== Imperatively (each time an application is launched) ====
Example: to launch <code>code</code> ''({{Nixpkg|pkgs/applications/editors/vscode/vscode.nix|vscode}})''<syntaxhighlight lang="console">
Example: to launch <code>code</code> ''({{Nixpkg|pkgs/applications/editors/vscode/vscode.nix|vscode}})''
NIXOS_OZONE_WL=1 code
<syntaxhighlight lang="console">
$ NIXOS_OZONE_WL=1 code
</syntaxhighlight>
</syntaxhighlight>