From 7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 3 Nov 2017 18:19:14 +0100 Subject: .xinitrc: Removing Xressources and Xmodmap settings and adding starting of window managers only. --- .xinitrc | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to '.xinitrc') 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 -- cgit v1.2.3-70-g09d2