aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-10-22 00:02:27 +0800
committerGuangxiong Lin <[email protected]>2021-10-22 00:02:27 +0800
commit3b3e09d497078adfcb8f054a895d1ddac68a37de (patch)
tree0ea96c6e3f2ee07ab0d597181bf57a98b1adddae
parente088f86f3ca6bcaae3d1190e19f09d4408e99bfc (diff)
downloaddotfiles-3b3e09d497078adfcb8f054a895d1ddac68a37de.tar.gz
dotfiles-3b3e09d497078adfcb8f054a895d1ddac68a37de.tar.bz2
dotfiles-3b3e09d497078adfcb8f054a895d1ddac68a37de.zip
Update xinit
-rw-r--r--.xinitrc10
-rw-r--r--.zprofile3
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