codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#!/bin/sh # $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ # # /etc/X11/xinit/xinitrc.fluxbox # # Called by startx (with a command something like: # xinit /etc/X11/xinit/xinitrc.fluxbox X) # (actually via /usr/lib/X11/xinit/) echo "Beginning X Init RC script." # Handle KDE temp files that should have been deleted. if [ -e $HOME/.DCOPserver_$HOSTNAME__0 ]; then rm $HOME/.DCOPserver_$HOSTNAME__0; fi if [ -e $HOME/.DCOPserver_$HOSTNAME_:0 ]; then rm $HOME/.DCOPserver_$HOSTNAME_:0; fi if [ -e $HOME/.kde/socket-$HOSTNAME ]; then rm $HOME/.kde/socket-$HOSTNAME; fi if [ -e $HOME/.kde/tmp-$HOSTNAME ]; then rm $HOME/.kde/tmp-$HOSTNAME; fi if [ -e /tmp/kde-`whoami` ]; then rm -R /tmp/kde-`whoami`; fi if [ -e /tmp/ksocket-`whoami` ]; then rm -R /tmp/ksocket-`whoami`; fi # History the Fluxbox logs. sudo mv /var/log/fluxbox.log.older /var/log/fluxbox.log.oldest sudo mv /var/log/fluxbox.log.old /var/log/fluxbox.log.older sudo mv /var/log/fluxbox.log /var/log/fluxbox.log.old sudo touch /var/log/fluxbox.log sudo chmod 660 /var/log/fluxbox.log sudo chown root:users /var/log/fluxbox.log ##### X Settings ##### # Merge in defaults and keymaps (xresources and xmodmap), I use system-wide versions userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/lib/X11/xinit/.Xresources sysmodmap=/usr/lib/X11/xinit/.Xmodmap if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f $userresources ]; then xrdb -merge $userresources fi if [ -f $usermodmap ]; then xmodmap $usermodmap fi # Set the background via X - I'm showing this to you because it can be useful, # but most of the time, and I mean MOST it is a terribly idea; it will break # any app that looks to Fluxbox instead of X for background information #/usr/bin/xsetroot -solid SteelBlue # aka #1C232E # Increase the keyboard repeat-rate, I do this in xorg.conf #xset r rate 195 35 # Your own fonts-dir, I handle fonts by xfontconfig (and xfs) #xset +fp "$HOME/.fonts" # Your favorite mouse cursor: #xsetroot -cursor_name right_ptr # Turn off hardware background blanking, screensaver, and turn on energy star # features (print blank screen at 9:30, and turn off the whole monitor at 10:00,' # this is so that if still working and it blanks, it will restore immediately # with input, but if not active, it'll shut off in another 30 seconds) # (note: the middle value is to partially turn off monitor) xset s noblank xset s off xset dpms 570 0 600 # Turn off system bell xset b off # Set mouse speed acceleration and threshold xset m 6/1 8 ##### Start the window manager ##### #exec /usr/bin/startfluxbox # With a log: #exec /usr/bin/startfluxbox >& /var/log/fluxbox.startfluxbox.log # Alternatively, start Fluxbox, grab its pid, execute commands simultaneously, # then wait for the completion of Fluxbox, before logging: exec /usr/bin/startfluxbox & FLUXPID=$! ##### Start preferred apps ##### # the -w puts it into the Fluxbox slit gkrellm -w & # this is a script to launch those first 7 aterms /usr/local/bin/aterm_launch firefox & xfe /home/public/manager/ktorrent/seeding & kmix --caption 'It Goes To Eleven!' & soffice -nologo & sleep 3 ktorrent & sleep 2 bluefish -p /home/blah/docs/useful/useful-favorites.bfproject & sleep 3 bluefish -p /home/blah/docs/system/System.bfproject & xchat & ##### Hang on Fluxbox until it finishes ##### wait $FLUXPID echo "X Finishing."
Private
[
?
]
Run code