commit 26513e81e6cf2beb93d479aa7320c2ae36a6f6f8 parent b0b6c28591f0700cb7a0364144d77b8666a1c5af Author: Dash Eclipse <dashezup@disroot.org> Date: Sat, 17 Jul 2021 18:25:43 +0000 feat: update .zprofile Diffstat:
M | .zprofile | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.zprofile b/.zprofile @@ -1,3 +1,7 @@ -if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then - sx ~/.config/sx/sxrc dwm +if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] ; then + case "$TTY" in + #"/dev/tty1") sx ~/.config/sx/sxrc dwm;; + "/dev/tty1") dbus-launch --sh-syntax --exit-with-session sway;; + "/dev/tty2") echo; opcal; echo;; + esac fi