From 3b3e09d497078adfcb8f054a895d1ddac68a37de Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 22 Oct 2021 00:02:27 +0800 Subject: Update xinit --- .xinitrc | 10 +++++++++- .zprofile | 3 --- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.xinitrc b/.xinitrc index 06e5066..d5d3a2b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -38,4 +38,12 @@ fi # xterm -geometry 80x20+494-0 & # exec xterm -geometry 80x66+0+0 -name login -exec dbus-launch startdwm +session=${1:-dwm} +case $session in + dwm) + exec dbus-launch startdwm;; + i3|i3wm) + exec dbus-launch i3;; + *) + exec dbus-launch $1;; +esac diff --git a/.zprofile b/.zprofile index 277492d..e69de29 100644 --- a/.zprofile +++ b/.zprofile @@ -1,3 +0,0 @@ -if [ -z "${DISPLAY}" ] && [ "{XDG_VTNR}" -eq 1 ]; then - exec startx -fi -- cgit v1.2.3