aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc10
1 files changed, 9 insertions, 1 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