sway: Clean up zsh start script

restic-rest-server
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
1 changed files with 2 additions and 2 deletions

View File

@ -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
'';