diff --git a/modules/home/niri/default.nix b/modules/home/niri/default.nix --- a/modules/home/niri/default.nix +++ b/modules/home/niri/default.nix @@ -8,6 +8,15 @@ ... }: let isNixOS = osConfig != null; + xwaylandSatellite = pkgs.writeShellScriptBin "xwayland-satellite" '' + if [[ "''${1-}" == :* ]]; then + display="$1" + shift + exec ${lib.getExe pkgs.xwayland-satellite} "$display" -ac "$@" + fi + + exec ${lib.getExe pkgs.xwayland-satellite} -ac "$@" + ''; in { imports = [ @@ -30,7 +39,7 @@ xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gnome ]; home.packages = with pkgs; [ - xwayland-satellite + xwaylandSatellite nautilus wf-recorder slurp