Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 201 - (show annotations)
Sun Oct 4 15:01:40 2009 UTC (3 years, 8 months ago) by cjg
File size: 1411 byte(s)
importing opt
1 #!/bin/sh
2
3 command=${0##*/}
4 startup="$HOME/.fluxbox/startup"
5
6 if [ -x "$startup" ]; then
7 exec "$startup"
8 elif [ -r "$startup" ]; then
9 exec sh "$startup"
10 else
11 if [ ! -d ~/.fluxbox ]; then
12 mkdir -p ~/.fluxbox/{backgrounds,styles,pixmaps}
13 fi
14 if [ ! -r "$startup" ]; then
15 cat << EOF > "$startup"
16 # fluxbox startup-script:
17 #
18 # Lines starting with a '#' are ignored.
19
20 # You can set your favourite wallpaper here if you don't want
21 # to do it from your style.
22 #
23 # bsetbg -f ~/pictures/wallpaper.png
24 #
25 # This sets a black background
26
27 /usr/bin/bsetroot -solid black
28
29 # This shows the fluxbox-splash-screen
30 # fbsetbg -C /usr/share/fluxbox/splash.jpg
31
32 # Other examples. Check man xset for details.
33 #
34 # Turn off beeps:
35 # xset -b
36 #
37 # Increase the keyboard repeat-rate:
38 # xset r rate 195 35
39 #
40 # Your own fonts-dir:
41 # xset +fp $HOME/.font
42 #
43 # Your favourite mouse cursor:
44 # xsetroot -cursor_name right_ptr
45 #
46 # Change your keymap:
47 # xmodmap ~/.Xmodmap
48
49
50 # Applications you want to run with fluxbox.
51 # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
52 #
53 # unclutter -idle 2 &
54 # wmnd &
55 # wmsmixer -w &
56 # idesk &
57
58 # And last but not least we start fluxbox.
59 # Because it is the last app you have to run it with ''exec'' before it.
60
61 exec /usr/bin/fluxbox
62 # or if you want to keep a log:
63 # exec /usr/bin/fluxbox -log ~/.fluxbox/log
64 EOF
65 fi
66 chmod 755 "$startup"
67 exec "$startup"
68 fi