From 888416bb2171c191e2ec33adaff5270f8dde3153 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 15 Dec 2024 13:47:37 +0100 Subject: feat(zsh): Don't start sway automatically on tty1 Signed-off-by: David Runge --- .config/zsh/.zprofile | 12 ------------ 1 file changed, 12 deletions(-) (limited to '.config/zsh') diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 4ec678f..aafa4ed 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -37,15 +37,3 @@ TMPPREFIX="${TMPDIR%/}/zsh" if [[ ! -d "$TMPPREFIX" ]]; then mkdir -p "$TMPPREFIX" fi - - -[[ "$TTY" == /dev/tty* ]] || return 0 - -if command -v systemctl > /dev/null; then - export $(systemctl --user show-environment) - if [[ -z $DISPLAY && "$TTY" == "/dev/tty1" ]]; then - systemd-cat -t sway sway - systemctl --user stop sway-session.target - systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK - fi -fi -- cgit v1.2.3-70-g09d2