i am currently trying to use steam on wayland, but dont find any good method for using x11 applications on wayland. does someone know a good way for doing this?
some info:
- niri wm (wayland)
- nixos 24.11 with flakes & home-manager
i am currently trying to use steam on wayland, but dont find any good method for using x11 applications on wayland. does someone know a good way for doing this?
some info:
Already tried this?
programs.xwayland.enable = true;
is this for home-manager or system configuration?
system configuration!
There’s a page on xwayland in the niri wiki that gives you some options, since niri doesn’t have xwayland support out of the box.
I’m using the xwayland-satellite option, which is basically starting xwayland-satellite (which you can get from nixpkgs) and setting the DISPLAY env variable mentioned in the wiki. Should hopefully work with no real issues
could you share your config?
Sorry, but I don’t use Niri, I just thought it was an easy fix.
the niri wiki just describes how to use xwayland-satellite. just add that to your config, then run it and then run your app.
for example when I want to run yourX11App
I do this in two terminal windows
$ xwayland-satellite
$ env DISPLAY=:0 yourX11App
there may be edge cases but this works as a quick way without having to suck up resources.