-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc-linux
64 lines (52 loc) · 1.47 KB
/
xinitrc-linux
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /bin/sh
# $Id: sys-xinitrc-fink.in,v 1.5 2008/02/18 06:41:09 okayama Exp $
# This script works even after the Fink "xinitrc" package is removed.
# Don't worry.
if test -r "/sw/etc/xinitrc-override"; then
# If system administrator dislike xinitrc.d framework, create this file
. "/sw/etc/xinitrc-override"
elif test -r "/sw/bin/xinitrc.sh"; then
. "/sw/bin/xinitrc.sh"
else
# Xterm and a window manager may be used for trouble shooting.
# Run these programs carefully.
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
x_bindir=/usr/X11R6/bin
# merge in defaults and keymaps
if test -f $sysresources; then
xrdb -merge $sysresources
fi
if test -f $sysmodmap; then
xmodmap $sysmodmap
fi
if test -f $userresources; then
xrdb -merge $userresources
fi
if test -f $usermodmap; then
xmodmap $usermodmap
fi
# start some nice programs
# Panther or Tiger only. On Leopard, use app_to_run in org.x.X11.plist instead.
case "`/usr/bin/uname -r`" in
7*|8*)
if test -x "$x_bindir/xterm"; then
termcmd="$x_bindir/xterm"
else
termcmd="xterm"
fi
$termcmd &
;;
esac
# start the window manager
if type quartz-wm >/dev/null 2>&1; then
sessionmgr="`which quartz-wm`"
elif test -x "$x_bindir/twm"; then
sessionmgr="$x_bindir/twm"
else
sessionmgr="twm"
fi
exec $sessionmgr
fi