File: xinitrc

package info (click to toggle)
pgi 0.9.6.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,792 kB
  • ctags: 801
  • sloc: sh: 4,540; python: 3,069; xml: 1,895; makefile: 1,727; perl: 1,080; ansic: 647; lisp: 151
file content (49 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download
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
#!/bin/sh

# $Progeny: xinitrc,v 1.7 2002/04/23 22:19:03 branden Exp $

/usr/bin/X11/xsetroot -cursor_name watch

if /usr/bin/X11/xsetroot -solid darkslateblue; then
    echo "Set root window to solid darkslateblue." >&2
else
    echo "Can't set the root window to a solid color!  What's going on?" >&2
fi

# XXX: pretty kludgey...
BITMAP=/etc/configlets/root_window.xbm
FALLBACK=yes
DEPTH=$(/usr/bin/X11/xdpyinfo | /bin/grep 'depth of root window' | /usr/bin/cut -d: -f2 | /bin/sed -e 's/ //g' -e 's/planes//')
if [ -n "$DEPTH" ]; then
    if [ $DEPTH -gt 4 ]; then
        IMAGEFILE=$(/bin/ls /etc/configlets/root_window.* | /bin/grep -v '\.xbm$' | /usr/bin/head -1)
        if [ -n "$IMAGEFILE" ]; then
            if /usr/bin/xsetbg $IMAGEFILE; then
                echo "Using $IMAGEFILE as root window." >&2
                FALLBACK=
            fi
        fi
    fi
fi

if [ -n "$FALLBACK" ]; then
    if [ -e $BITMAP ]; then
        if /usr/bin/X11xsetroot -bitmap $BITMAP; then
            echo "Using $BITMAP as root window." >&2
        fi
    fi
fi

/usr/bin/fvwm2 -f /etc/configlets/fvwm2rc &

/usr/bin/X11/xsetroot -cursor_name left_ptr

/usr/sbin/configlets-druid

if /usr/bin/do-apt-cdrom; then
    if [ -x /usr/bin/gnome-tasksel ]; then
        /usr/bin/gnome-tasksel
    fi
fi

# vim:ai:et:sts=4:sw=4:tw=0: