All pastes #211977 Raw Edit

Miscellany

public text v1 · immutable
#211977 ·published 2006-10-20 16:41 UTC
rendered paste body
[root@wombat jeanre]# cat .xinitrc
. /etc/profile
. $HOME/.bashrc

is_running() {
          for pid in $(pidof "$1"); do
                      if kill -0 $pid 2>/dev/null; then
                                    return 0
                                        fi
                                          done
                                            return 1
                                    }
                                    xrdb $HOME/.Xresources

                                    # start a dbus session bus, if it is not alr eady running
                                    # This is no longer necessary with newer ber yl versions
                                    if ! is_running dbus-daemon; then
                                              dbus-launch --sh-syntax > $HOME/.d bus-env
                                      fi
                                      source $HOME/.dbus-env

                                      # start beryl and beryl-manager
                                      beryl-start
                                      beryl-manager &
                                      # start necessary xfce components
                                      xfce-mcs-manager
                                      xftaskbar4 & # REMOVE THIS LINE IF YOU USE  XFCE-SVN
                                      xfcalendar & # REMOVE THIS LINE IF YOU USE  XFCE-SVN
                                      xfdesktop &
                                      xfce4-panel & wmpid=$!

                                      # start any other needed programs here

                                      wait $wmpid