Fix dedicated GPU mode

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-20 12:59:23 +03:00
parent ea01ac7fe0
commit dbbb11b4e9
2 changed files with 27 additions and 11 deletions

View File

@@ -99,7 +99,7 @@
};
};
programs.zsh.loginExtra = ''
programs.zsh.loginExtra = lib.mkAfter ''
if [ -z "''${WAYLAND_DISPLAY}" ] && [ ! -z "''${XDG_VTNR}" ] && [ "''${XDG_VTNR}" -eq 1 ]; then
${pkgs.hyprland}/bin/hyprland &> /tmp/hyprland.log
fi