diff options
author | David Runge <dave@sleepmap.de> | 2017-11-03 18:19:14 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2017-11-03 18:19:14 +0100 |
commit | 7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec (patch) | |
tree | ad25bbb97a0668561d780db05fdd14e1db15f612 | |
parent | a629cfb50d002fe697cc31606cbfa7d8272e08df (diff) | |
download | dotfiles-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 | .xinitrc | 33 |
1 files changed, 12 insertions, 21 deletions
@@ -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 |