summaryrefslogtreecommitdiff
path: root/.xinitrc
blob: b3c03145ae5236efec9a637bff7d81e156f93c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/zsh -l

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 -DHOME=$HOME -merge $HOME/.Xresources

case $session in
    [xX]fce|[xX]fce4) exec startxfce4;;
    *)
        . $HOME/.fehbg
        exec i3 -V > $HOME/.i3/i3.log 2>&1
        ;;
esac