home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 November - Disc 1 / PCNET_CD_2006_11_1.iso / linux / gparted-livecd-0.3.1-1.iso / gparted / usr / X11R6 / bin / startfluxbox < prev    next >
Encoding:
Text File  |  2006-07-03  |  1.9 KB  |  91 lines

  1. #!/bin/sh
  2. # $Id: startfluxbox.in 4450 2006-06-23 00:31:08Z markt $
  3.  
  4. command="`basename \"$0\"`"
  5. startup="$HOME/.fluxbox/startup"
  6.  
  7. while [ $# -gt 0 ]; do
  8.     case "$1" in
  9.         -c|--config)
  10.             if [ $# -lt 2 ]; then
  11.                 echo "$command:error, missing argument"
  12.                 exit 1
  13.             fi
  14.             shift
  15.             startup=$1
  16.         ;;
  17.         -h|--help) cat <<EOF
  18. Usage: $command [-h] [-c startupfile]
  19. EOF
  20.         exit
  21.         ;;
  22.     esac
  23.     shift
  24. done
  25.  
  26. if [ -x "$startup" ]; then
  27.     exec "$startup"
  28. elif [ -r "$startup" ]; then
  29.     exec sh "$startup"
  30. else
  31.     if [ ! -d "$HOME/.fluxbox" ]; then
  32.         mkdir -p "$HOME/.fluxbox/backgrounds" "$HOME/.fluxbox/styles" "$HOME/.fluxbox/pixmaps"
  33.     fi
  34.     if [ ! -r "$startup" ]; then
  35.         ( cat << EOF
  36. # fluxbox startup-script:
  37. #
  38. # Lines starting with a '#' are ignored.
  39.  
  40. # You can set your favourite wallpaper here if you don't want
  41. # to do it from your style.
  42. #
  43. # fbsetbg -f $HOME/pictures/wallpaper.png
  44. #
  45. # This sets a black background
  46.  
  47. /usr/X11/bin/fbsetroot -solid black
  48.  
  49. # This shows the fluxbox-splash-screen
  50. # fbsetbg -C /usr/X11/share/fluxbox/splash.jpg
  51.  
  52. # Other examples. Check man xset for details.
  53. #
  54. # Turn off beeps:
  55. # xset -b
  56. #
  57. # Increase the keyboard repeat-rate:
  58. # xset r rate 195 35
  59. #
  60. # Your own fonts-dir:
  61. # xset +fp "$HOME/.fonts"
  62. #
  63. # Your favourite mouse cursor:
  64. # xsetroot -cursor_name right_ptr
  65. #
  66. # Change your keymap:
  67. # xmodmap "$HOME/.Xmodmap"
  68.  
  69.  
  70.  
  71. # Applications you want to run with fluxbox.
  72. # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
  73. #
  74. # unclutter -idle 2 &
  75. # wmnd &
  76. # wmsmixer -w &
  77. # idesk &
  78.  
  79. # And last but not least we start fluxbox.
  80. # Because it is the last app you have to run it with ''exec'' before it.
  81.  
  82. exec /usr/X11/bin/fluxbox
  83. # or if you want to keep a log:
  84. # exec /usr/X11/bin/fluxbox -log "$HOME/.fluxbox/log"
  85. EOF
  86.     ) > "$startup"
  87.     fi
  88.     chmod 755 "$startup"
  89.     exec "$startup"
  90. fi
  91.