aboutsummaryrefslogtreecommitdiffstats
path: root/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.xinitrc')
-rwxr-xr-x.xinitrc33
1 files changed, 12 insertions, 21 deletions
diff --git a/.xinitrc b/.xinitrc
index 8c51067..e588047 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,26 +1,17 @@
#!/bin/sh
-# Disable touchpad while typing using syndaemon
-#if [[ -f /usr/bin/syndaemon ]]; then
-# syndaemon -t -k -i 2 &
-#fi
+[ -f /etc/xprofile ] && . /etc/xprofile
+[ -f ~/.xprofile ] && . ~/.xprofile
-#X11 keyboard maps
-setxkbmap -layout de
+session=${1:-qtile}
-#setxkbmap -option 'caps:escape'
-#setxkbmap -option 'ctrl:swapcaps'
-#setxkbmap -option 'ctrl:nocaps'
+case $session in
+ i3|i3wm ) exec i3;;
+ kde ) exec startkde;;
+ qtile ) exec qtile;;
+ awesome ) exec awesome;;
+ xfce|xfce4 ) exec startxfce4;;
+ # No known session, try to run it as command
+ * ) exec $1;;
+esac
-# turn bell off
-xset b off
-
-# use .Xmodmap
-if [[ -f ~/.Xmodmap ]]; then
- /usr/bin/xmodmap ~/.Xmodmap
-fi
-
-# use .Xresources
-if [[ -f ~/.Xresources ]];then
- /usr/bin/xrdb ~/.Xresources
-fi