summary refs log tree commit diff
path: root/_xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_xinitrc12
1 files changed, 3 insertions, 9 deletions
diff --git a/_xinitrc b/_xinitrc
index dc3d1c06..61d281d3 100644
--- a/_xinitrc
+++ b/_xinitrc
@@ -1,5 +1,3 @@
-#eval `dbus-launch --sh-syntax --exit-with-session`
-
 xrdb ~/.Xresources &
 xautolock -locker slimlock -time 30 &
 
@@ -7,10 +5,6 @@ xautolock -locker slimlock -time 30 &
 xmodmap -e "clear Lock" -e "keysym Caps_Lock = Escape" # Caps Lock -> Esc
 xmodmap -e "remove mod1 = Alt_R" -e "keysym Alt_R = Multi_key" # Right Alt -> Compose
 
-DEFAULT=openbox-session
-
-if [[ $1 ]]; then
-    exec ck-launch-session dbus-launch $1
-else
-    exec ck-launch-session dbus-launch $DEFAULT
-fi
+SESSION=openbox-session
+[ $1 ] && SESSION=$1
+exec ck-launch-session dbus-launch $SESSION