sway: Clean up zsh start script

This commit is contained in:
Simon Bruder 2020-12-07 19:59:49 +01:00
parent 29ddc36591
commit 571d5bd3ad
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -245,8 +245,8 @@ lib.mkIf config.sbruder.gui.enable {
# Start on tty1 # Start on tty1
programs.zsh.profileExtra = '' programs.zsh.profileExtra = ''
if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && command -v sway >/dev/null ; then if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
export XDG_SESSION_TYPE="wayland" export XDG_SESSION_TYPE="wayland" # otherwise set to tty
exec sway exec sway
fi fi
''; '';