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
|
# 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
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue