From 0d6c463145b9c656586e6dc6d68dd9b72400268e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 6 Dec 2003 16:29:21 +0000 Subject: updates from Han --- util/startfluxbox.in | 60 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/util/startfluxbox.in b/util/startfluxbox.in index 8e9daeb..558297f 100755 --- a/util/startfluxbox.in +++ b/util/startfluxbox.in @@ -1,14 +1,66 @@ #!/bin/sh -# $Id: startfluxbox.in,v 1.2 2003/09/29 11:59:35 fluxgen Exp $ -if [ -x ~/.fluxbox/startup ];then +# $Id: startfluxbox.in,v 1.3 2003/12/06 16:29:21 fluxgen Exp $ +if [ -x ~/.fluxbox/startup ]; then exec ~/.fluxbox/startup elif [ -r ~/.fluxbox/startup ]; then exec sh ~/.fluxbox/startup else - if [ ! -d ~/.fluxbox ];then + if [ ! -d ~/.fluxbox ]; then mkdir -p ~/.fluxbox/{backgrounds,styles,pixmaps} fi - cp @pkgdatadir@/startup ~/.fluxbox + if [ ! -r ~/.fluxbox/startup ]; then + cat << EOF > ~/.fluxbox/startup +# fluxbox startup-script: +# +# Lines starting with a '#' are ignored. + +# You can set your favourite wallpaper here if you don't want +# to do it from your style. +# +# bsetbg -f ~/pictures/wallpaper.png +# +# This sets a black background + +@pkgbindir@/bsetroot -solid black + +# This shows the fluxbox-splash-screen +# fbsetbg -C /usr/share/fluxbox/splash.jpg + +# Other examples. Check man xset for details. +# +# Turn off beeps: +# xset -b +# +# Increase the keyboard repeat-rate: +# xset r rate 195 35 +# +# Your own fonts-dir: +# xset +fp $HOME/.font +# +# Your favourite mouse cursor: +# xsetroot -cursor_name right_ptr +# +# Change your keymap: +# xmodmap ~/.Xmodmap + + + +# Applications you want to run with fluxbox. +# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END. +# +# unclutter -idle 2 & +# wmnd & +# wmsmixer -w & +# idesk & + +# And last but not least we start fluxbox. +# Because it is the last app you have to run it with ''exec'' before it. + +exec @pkgbindir@/fluxbox +# or if you want to keep a log: +# exec @pkgbindir@/fluxbox -log ~/.fluxbox/log +EOF + fi chmod 755 ~/.fluxbox/startup exec ~/.fluxbox/startup fi -- cgit v0.11.2