Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
2
# copyrighted material is made available to anyone wishing to use, modify,
3
# copy, or redistribute it subject to the terms and conditions of the
4
# GNU General Public License version 2.
5
#
6
# You should have received a copy of the GNU General Public License
7
# along with this program; if not, write to the Free Software
8
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
9
 
10
# xinitrc-common
11
#
12
# This is common code shared by both Xsession and xinitrc scripts.  Be sure
13
# to take this into account when fixing bugs or adding new functionality.
14
 
15
# Set up i18n environment
16
if [ -r /etc/profile.d/lang.sh ]; then
17
  . /etc/profile.d/lang.sh
18
fi
19
 
20
[ -r $HOME/.profile ] && . $HOME/.profile
21
 
22
userresources=$HOME/.Xresources
23
usermodmap=$HOME/.Xmodmap
24
userxkbmap=$HOME/.Xkbmap
25
 
26
sysresources=/etc/X11/Xresources
27
sysmodmap=/etc/X11/Xmodmap
28
sysxkbmap=/etc/X11/Xkbmap
29
 
30
# merge in defaults
31
[ -r "$sysresources" ] && xrdb -nocpp -merge "$sysresources"
32
[ -r "$userresources" ] && xrdb -merge "$userresources"
33
 
34
# merge in keymaps
35
if [ -r "$sysxkbmap" ]; then
36
    setxkbmap $(cat "$sysxkbmap")
37
fi
38
 
39
if [ -r "$userxkbmap" ]; then
40
    setxkbmap $(cat "$userxkbmap")
41
fi
42
 
43
# xkb and xmodmap don't play nice together
44
if ! [ -r "$sysxkbmap" -o -r "$userxkbmap" ] ; then
45
    [ -r "$sysmodmap" ] && xmodmap "$sysmodmap"
46
    [ -r "$usermodmap" ] && xmodmap "$usermodmap"
47
fi
48
 
49
# run all system xinitrc shell scripts.
50
for file in /etc/X11/xinit/xinitrc.d/* ; do
51
        . $file
52
done
53
 
54
# Prefix launch of session with ssh-agent if available and not already running.
55
if [ -z "$SSH_AGENT" ] && [ -z "$SSH_AUTH_SOCK" ] && [ -z "$SSH_AGENT_PID" ] && [ -x /usr/bin/ssh-agent ]; then
56
    if [ "x$TMPDIR" != "x" ]; then
57
        SSH_AGENT="/usr/bin/ssh-agent /bin/env TMPDIR=$TMPDIR"
58
    else
59
        SSH_AGENT="/usr/bin/ssh-agent"
60
    fi
61
fi