LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2004, 09:54 AM   #16
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30

Haha sweet i'll give it a blat when I get slackware up n running

Yeah I figured it was a joke - the whole "Unregistered" kinda gave it away lol but i've seen it so much i wanna join in on the party hehe

Cheers for the info
 
Old 01-20-2004, 12:19 PM   #17
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Original Poster
Rep: Reputation: 30
Cool! I love KDM. It's so awesome! Thank you all for the help. This site has saved by butt many times!
 
Old 01-20-2004, 12:27 PM   #18
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
lol yeah same - LOTS of very intelligent peeps out there
 
Old 01-20-2004, 01:52 PM   #19
dirstyGuy
Member
 
Registered: Jan 2004
Posts: 67

Rep: Reputation: 15
If u want to be able to choose WindowManager (WM) u can replace /etc/rc.d/rc.4 with this script, then change defaut run level to be 4 in /etc/inittab. Or just easily put it in ~/bin/WMChooser.sh then append "$HOME/bin/WMChooser.sh" at the end of ~/.bash_profile, without "".

Code:
#!/bin/sh
# ~/bin/WMChooser.sh

# XINITDIR is the directory containing those xinitrc files
XINITDIR=/etc/X11/xinit

# Use your customized xinitrc? replace XINITDIR with thier path
#XINITDIR=$HOME/etc/X


delXinitrc() {
  [ -e $HOME/.xinitrc ] && rm -f $HOME/.xinitrc 2>/dev/null
  # echo "~/.xinitrc deleted"
}


STARTX="no"
[ `tty|cut -b -8` = "/dev/tty" -a $TERM = "linux" ] && STARTX="yes"
[ -e /tmp/.X0-lock ] && STARTX="yes"
#echo $TERM $STARTX

[ $STARTX = "yes" ] && {

  echo -en "\n\tWhat to start(blackbox|fluxbox|twm|mwm|kde|gnome)? "
  read WM

  case "$WM" in
    'blackbox') delXinitrc;/bin/ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
    'fluxbox') delXinitrc;ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
    'twm') delXinitrc;ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
    'mwm') delXinitrc;ln -s $XINITDIR/xinitrc.$WM ~/.xinitrc;;
    'kde') echo "the command must be startkde..";;
    'gnome') echo "Sorry just forget the command for gnome";;
    *)
      echo -e "\n\tDumb ass, I start mwm now..\n"
      delXinitrc;ln -s $XINITRC/xinitrc.mwm $HOME/.xinitrc;;
  esac
  /usr/X11R6/bin/startx 2> ~/tmp/startx.err
}
Need a little tweak to suit ur installation, compare those option between case..esac to the installed WMs on /etc/X11/xinit..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 06:02 AM
Start a server automatically? timmyk0 Linux - General 8 06-24-2006 02:58 AM
Xhost - How to start it automatically? shazam75 Linux - Software 3 10-17-2004 08:29 AM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 12:58 PM
X won't start automatically urinal cake Linux - Newbie 5 03-08-2002 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration