diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-06-08 11:17:36 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-06-08 11:17:37 +0200 |
commit | 17d7b38e277deb46b664b52c5cdb40feafe902a1 (patch) | |
tree | b6e3c702567c802d082f8fdf19edc9e57cc91d33 /.xinitrc | |
parent | 5f19288099c4fcf595ff5ef14b3abe85ef5f1890 (diff) | |
download | dotfiles-17d7b38e277deb46b664b52c5cdb40feafe902a1.tar.gz dotfiles-17d7b38e277deb46b664b52c5cdb40feafe902a1.tar.bz2 dotfiles-17d7b38e277deb46b664b52c5cdb40feafe902a1.zip |
Cleanup X startup files
Diffstat (limited to '')
-rw-r--r-- | .xinitrc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..3143dc1 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,40 @@ +#!/bin/bash + +session=$1 + +# +# XKB is not set here anymore -- instead we use the standard altgr_intl +# with some more options +# set the following in X11: "terminate:ctrl_alt_bksp,grp:menu_toggle,compose:rwin,caps:escape" +# + +# set IM to XIM, so it reads .XCompose +export GTK_IM_MODULE=xim +export QT_IM_MODULE=xim + +[ x$GPG_AGENT_INFO = "x" ] && eval $(gpg-agent --daemon) + +# start urxvt daemon +urxvtd -f -o -q + +[[ $session == session ]] && exit + +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for i in /etc/X11/xinit/xinitrc.d/* ; do + if [ -x "$i" ]; then + . "$i" + fi + done +fi + +xrdb -merge $HOME/.Xresources +$HOME/.i3/scripts/monitors.sh 2 + +case $session in + [xX]fce|[xX]fce4) exec startxfce4;; + *) + . $HOME/.fehbg + exec i3 -V > $HOME/.i3/i3.log 2>&1 + ;; +esac +# exec herbstluftwm |