sway: Clean up zsh start script
This commit is contained in:
parent
29ddc36591
commit
571d5bd3ad
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue