aboutsummaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2024-12-15 13:47:37 +0100
committerDavid Runge <dave@sleepmap.de>2024-12-15 13:47:37 +0100
commit888416bb2171c191e2ec33adaff5270f8dde3153 (patch)
tree92791a4de7e9f4b7f4c3e915a78ea3539e6f31c9 /.config/zsh
parent663e5c2b5eac5a9f81ee27edac58bbd667e42eb5 (diff)
downloaddotfiles-888416bb2171c191e2ec33adaff5270f8dde3153.tar.gz
dotfiles-888416bb2171c191e2ec33adaff5270f8dde3153.tar.bz2
dotfiles-888416bb2171c191e2ec33adaff5270f8dde3153.tar.xz
dotfiles-888416bb2171c191e2ec33adaff5270f8dde3153.zip
feat(zsh): Don't start sway automatically on tty1
Signed-off-by: David Runge <dave@sleepmap.de>
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zprofile12
1 files changed, 0 insertions, 12 deletions
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