aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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