-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xsession
executable file
·37 lines (31 loc) · 1.26 KB
/
.xsession
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
#!/bin/sh -xv
xset +dpms
if [ -r .xmodmap-`hostname -s ` ]; then
xmodmap ~/.xmodmap-`hostname -s`
fi
XDEFAULTS_GENERAL=.Xresources
XDEFAULTS_SPECIFIC=.Xresources-`hostname`
for XDEF in $XDEFAULTS_GENERAL $XDEFAULTS_SPECIFIC; do
xrdb -merge $XDEF
done
# ssh agent
if [ -x /usr/bin/ssh-askpass ] ; then
export SSH_ASKPASS=/usr/bin/ssh-askpass
elif [ -x /usr/lib/ssh/x11-ssh-askpass ] ; then
export SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
elif [ -x /usr/libexec/openssh/x11-ssh-askpass ] ; then
export SSH_ASKPASS=/usr/libexec/openssh/x11-ssh-askpass
elif [ -x /usr/lib/ssh/gnome-ssh-askpass ] ; then
export SSH_ASKPASS=/usr/lib/ssh/gnome-ssh-askpass
elif [ -x ${HOME}/libexec/x11-ssh-askpass ] ; then
export SSH_ASKPASS=${HOME}/libexec/x11-ssh-askpass
fi
[ ! "$SSH_AGENT_PID" ] && eval `ssh-agent -s`
# - some environments (like MCS) want me to keep a lifetime on my keys. Most
# of the time it's just annoying
# - evidenlty on some systems (gentoo for one), programs *do* have a
# controlling terminal when run from xinit
DISPLAY=:0 ssh-add ${SSH_AGENT_TIMEOUT} ${HOME}/.ssh/identity ${HOME}/.ssh/id_rsa ${HOME}/.ssh/id_dsa </dev/null
# extra programs: sawfish only manages windows
[ -f ${HOME}/.xinitrc-`hostname -s` ] && ${HOME}/.xinitrc-`hostname -s`
exec gnome-session