From 80d4f99504a1b4c0b0ea7e39f3a5cffce4445580 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 1 Mar 2022 21:48:54 +0100 Subject: modules/sternenseemann/sway: wrap sway in systemd-cat This will make sway's output get sent to the journal which is useful when tracking down problems (as the console is cleared immediately when sway exits). --- modules/user/sternenseemann/services/sway.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/user/sternenseemann/services/sway.nix b/modules/user/sternenseemann/services/sway.nix index 5313b585..85dd1657 100644 --- a/modules/user/sternenseemann/services/sway.nix +++ b/modules/user/sternenseemann/services/sway.nix @@ -12,6 +12,7 @@ let // (getBins pkgs.dbus [ "dbus-update-activation-environment" ]) + // (getBins pkgs.systemd [ "systemd-cat" ]) // (getBins cfg.package [ "sway" ]) // (getBins pkgs.i3status [ "i3status" ]) // (getBins pkgs.brightnessctl [ "brightnessctl" ]) @@ -127,7 +128,7 @@ in { programs.fish.loginShellInit = lib.mkIf cfg.autolaunchFish '' if test -z "$DISPLAY"; and test -z "$WAYLAND_DISPLAY"; and test (tty) = "/dev/tty1" set -x SWAYSOCK "/run/user/"(id -u)"/sway.sock" - exec ${bins.sway} + exec ${bins.systemd-cat} ${bins.sway} end ''; -- cgit 1.4.1