restore sway for xwayland support
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.xwayland.enable = true;
|
programs.sway.enable = true;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
|
|||||||
@@ -38,22 +38,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."environment.d/xwayland.conf".text = "DISPLAY=:0\n";
|
|
||||||
|
|
||||||
systemd.user.services.xwayland-satellite = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Xwayland for niri";
|
|
||||||
BindsTo = [ "graphical-session.target" ];
|
|
||||||
After = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
Service = {
|
|
||||||
ExecStart = "${pkgs.xwayland-satellite}/bin/xwayland-satellite";
|
|
||||||
ExecStartPost = "${pkgs.systemd}/bin/systemctl --user set-environment DISPLAY=:0";
|
|
||||||
Restart = "on-failure";
|
|
||||||
};
|
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# wayland / desktop
|
# wayland / desktop
|
||||||
libnotify
|
libnotify
|
||||||
|
|||||||
Reference in New Issue
Block a user