aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-11-03 18:19:14 +0100
committerDavid Runge <dave@sleepmap.de>2017-11-03 18:19:14 +0100
commit7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec (patch)
treead25bbb97a0668561d780db05fdd14e1db15f612
parenta629cfb50d002fe697cc31606cbfa7d8272e08df (diff)
downloaddotfiles-7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec.tar.gz
dotfiles-7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec.tar.bz2
dotfiles-7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec.tar.xz
dotfiles-7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec.zip
.xinitrc: Removing Xressources and Xmodmap settings and adding starting of window managers only.
-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