From 571d5bd3ad4020be25346548701d689f0ce648a6 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 7 Dec 2020 19:59:49 +0100 Subject: [PATCH] sway: Clean up zsh start script --- users/simon/modules/sway.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index 76c5d1a..6dbeb2e 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -245,8 +245,8 @@ lib.mkIf config.sbruder.gui.enable { # Start on tty1 programs.zsh.profileExtra = '' - if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && command -v sway >/dev/null ; then - export XDG_SESSION_TYPE="wayland" + if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + export XDG_SESSION_TYPE="wayland" # otherwise set to tty exec sway fi '';