diff options
Diffstat (limited to 'util/startfluxbox.in')
-rwxr-xr-x | util/startfluxbox.in | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/util/startfluxbox.in b/util/startfluxbox.in new file mode 100755 index 0000000..558297f --- /dev/null +++ b/util/startfluxbox.in | |||
@@ -0,0 +1,66 @@ | |||
1 | #!/bin/sh | ||
2 | # $Id: startfluxbox.in,v 1.3 2003/12/06 16:29:21 fluxgen Exp $ | ||
3 | if [ -x ~/.fluxbox/startup ]; then | ||
4 | exec ~/.fluxbox/startup | ||
5 | elif [ -r ~/.fluxbox/startup ]; then | ||
6 | exec sh ~/.fluxbox/startup | ||
7 | else | ||
8 | if [ ! -d ~/.fluxbox ]; then | ||
9 | mkdir -p ~/.fluxbox/{backgrounds,styles,pixmaps} | ||
10 | fi | ||
11 | if [ ! -r ~/.fluxbox/startup ]; then | ||
12 | cat << EOF > ~/.fluxbox/startup | ||
13 | # fluxbox startup-script: | ||
14 | # | ||
15 | # Lines starting with a '#' are ignored. | ||
16 | |||
17 | # You can set your favourite wallpaper here if you don't want | ||
18 | # to do it from your style. | ||
19 | # | ||
20 | # bsetbg -f ~/pictures/wallpaper.png | ||
21 | # | ||
22 | # This sets a black background | ||
23 | |||
24 | @pkgbindir@/bsetroot -solid black | ||
25 | |||
26 | # This shows the fluxbox-splash-screen | ||
27 | # fbsetbg -C /usr/share/fluxbox/splash.jpg | ||
28 | |||
29 | # Other examples. Check man xset for details. | ||
30 | # | ||
31 | # Turn off beeps: | ||
32 | # xset -b | ||
33 | # | ||
34 | # Increase the keyboard repeat-rate: | ||
35 | # xset r rate 195 35 | ||
36 | # | ||
37 | # Your own fonts-dir: | ||
38 | # xset +fp $HOME/.font | ||
39 | # | ||
40 | # Your favourite mouse cursor: | ||
41 | # xsetroot -cursor_name right_ptr | ||
42 | # | ||
43 | # Change your keymap: | ||
44 | # xmodmap ~/.Xmodmap | ||
45 | |||
46 | |||
47 | |||
48 | # Applications you want to run with fluxbox. | ||
49 | # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END. | ||
50 | # | ||
51 | # unclutter -idle 2 & | ||
52 | # wmnd & | ||
53 | # wmsmixer -w & | ||
54 | # idesk & | ||
55 | |||
56 | # And last but not least we start fluxbox. | ||
57 | # Because it is the last app you have to run it with ''exec'' before it. | ||
58 | |||
59 | exec @pkgbindir@/fluxbox | ||
60 | # or if you want to keep a log: | ||
61 | # exec @pkgbindir@/fluxbox -log ~/.fluxbox/log | ||
62 | EOF | ||
63 | fi | ||
64 | chmod 755 ~/.fluxbox/startup | ||
65 | exec ~/.fluxbox/startup | ||
66 | fi | ||