From 15a2fe7ffe312b07b15688c8bfaa68516269ef5d Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 21 Nov 2023 19:58:56 +0800 Subject: [PATCH] nixos, home, sway: fix autostart command --- users/guanranwang/home-manager/modules/wm/sway.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/guanranwang/home-manager/modules/wm/sway.nix b/users/guanranwang/home-manager/modules/wm/sway.nix index e7f5b25..1d5a6bf 100644 --- a/users/guanranwang/home-manager/modules/wm/sway.nix +++ b/users/guanranwang/home-manager/modules/wm/sway.nix @@ -15,8 +15,9 @@ ./components/waybar.nix ]; + # https://wiki.archlinux.org/title/Fish#Start_X_at_login programs.fish.loginShellInit = '' - if test -z "$Display" -a "$XDG_VTNR" = 1 + if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 exec sway end '';