Send greeter and desktop startup output to the journal

This commit is contained in:
rope 2026-09-15 09:53:08 +01:00
parent 3a34bc8706
commit 23e1fa7a0c
2 changed files with 6 additions and 2 deletions

View file

@ -29,7 +29,7 @@ let
'';
locker = bundle "fred-lock" ./quickshell/SessionLock.qml;
session = pkgs.writeShellScript "hyprland-session" ''
exec ${config.programs.hyprland.package}/bin/start-hyprland >/dev/null 2>&1
exec ${pkgs.systemd}/bin/systemd-cat --identifier=fred-desktop -- ${config.programs.hyprland.package}/bin/start-hyprland
'';
lockCommand = pkgs.writeShellApplication {
name = "fred-lock";
@ -55,7 +55,9 @@ in {
export QML2_IMPORT_PATH=${pkgs.qt6.qt5compat}/lib/qt-6/qml
export XKB_DEFAULT_LAYOUT=gb,no
export XKB_DEFAULT_OPTIONS=${lib.escapeShellArg ("grp:win_space_toggle" + lib.optionalString (config.networking.hostName == "FredOS-Gaming") ",altwin:swap_lalt_lwin")}
exec ${pkgs.dbus}/bin/dbus-run-session -- ${pkgs.cage}/bin/cage -s -- ${greeterClient}
# greetd attaches child output to the VT. Keep compositor and Qt
# startup/shutdown messages off the console exposed during handover.
exec ${pkgs.systemd}/bin/systemd-cat --identifier=fred-greeter -- ${pkgs.dbus}/bin/dbus-run-session -- ${pkgs.cage}/bin/cage -s -- ${greeterClient}
'');
};
};