SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
script for startx
this may be a ? more for the programing forum, but, i'll take my chances here. is there, or, could i write a script (my programing experience is limited( a little html and a little visual basic) i have recently delved into perl(still learning)) that would give me the option of which window manager loads when i startx? i understand wfmconfig and have successfully used it to explore different window managers just for the heck of it (learning). i'm just wondering if i could talk slack into asking me which wm to load when i startx. anyone who reads this, understand , it is not imperitive, i'm not in dire need of help here. just curios. thx in advance.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
thx for the response. what i mean is i can run wfmconfig every time i log in. what i'd like to do is get some kind of script or config that when i type startx...the sys asks me which wm to load. kinda like when i was running mandrake, and, could just pick a dropdown box for which session to run, but different in that i always start from the command line (now). I'd ultimatly like to type startx and have the sys ask which wm would you like to load? it may be a stretch, but, i'm learning and the more i learn about how configurable the linux sys is the more ? i have as to what i can really config the sys to do. again just curious, not in any trouble, just learning.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
Quote:
originally posted by Tinkster
Is that what you meant?
Quote:
Another way wouldbe to write another script.... Actually, an alias might work.
that's exactly what i'm trying to do. i'll give both a try and post the results. thx Tinkster you truly are a guru. also thx Shade. i love being part of something (this forum) where there is so much information, and so many individuals just waiting to help someone learn. thx again.
From what I understand the disadvantage of
xwmconfig is that it will kill individual settings
that you put in your scripts, though. That is,
if you have .xinitrc start stuff before the actual
windowmanager (like gkrellm or you default
xterm) it will be removed.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Original Poster
Rep:
something is going wrong, when i type starx i get the prompt for the options o.k., but, whether i select 1 or 2 i still get gnome. i am posting the edit. also when gnome comes up it's like 4 destops at 1 time w/ no end, or i should say no right side of the screen end. it stops in the middle of the screen and the next desktop stars...etc. 4 times.
Code:
userclientrc1=$HOME/.xinitrc1
userclientrc2=$HOME/.xinitrc2
userclientrc3=$HOME/.xinitrc3
userclientrc4=$HOME/.xinitrc4
userclientrc5=$HOME/.xinitrc5
echo "1 = KDE"
echo "2 = Gnome"
echo "3 = IceWM"
echo "4 = Fluxbox"
echo "Press a number and <Enter>"
read selection
case "$selection" in
"1" ) userclientrc=$userclientrc1;;
"2" ) userclientrc=$userclientrc2;;
"3" ) userclientrc=$userclientrc3;;
"4" ) userclientrc=$userclientrc4;;
esac
can anyone see anything wrong with this code. i may have messed it up as i only used the code tink provided as a guide. i thought i followed it pretty closly though. thx.
edit: i tried 3 & 4 also, still getting gnome w/ the above problems.thx
Originally posted by Shade
I believe all xwmconfig does is link xinitrc.whatever to xinitrc in /etc/X11/xinit...
I may be wrong though.
Am I missing something, Tink?
-Shade
Hmmm ...
less `which xwmconfig`
Code:
# Also set up a new $HOME/.xinitrc:
if [ -r /etc/X11/xinit/$OUTPUT -a ! "$HOME" = "/" ]; then
if [ -r $HOME/.xinitrc ]; then
rm -f $HOME/.xinitrc-backup
mv $HOME/.xinitrc $HOME/.xinitrc-backup
fi
cat /etc/X11/xinit/$OUTPUT > $HOME/.xinitrc
fi
Nope :)
It does change your ~/.xinitrc if you're not running
as root ... which we don't.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.