You are not logged in.
If anyone uses SLiM then maybe you can help me. I have installed the version in AUR and it seems to work well. I only have fluxbox as my session of choice but would like to add others (e.g. icewm). I would like to know what sorts of changes are necessary in my .xinitrc so that the session selected in SLiM (after pressing F1) will be the one used.
Also, in the slim.conf file there are things like halt_cmd, reboot_cmd and console_cmd. How do I use these? I currently exit fluxbox and the SLiM login appears. I then kill X with ctrl-alt-Backspace, login again and perform my shutdown. This is definitely not the way things are supposed to work...
I also cannot get the welcome_msg, shutdown_msg and reboot_msg entries from slim.conf to appear anywhere.
Any help would be appreciated for this old fart.
Thanks in advance,
-- Dr.U
--------------------------------------------------------------------------------------
What's the use of happiness? It can't buy you money. -- Henny Youngman
Offline
To halt or reboot from slim, type halt or reboot as username, then type root's password. I haven't tried console, but I guess it works the same way.
To use different kinds of X sessions do something like this in your xinitrc:
case "$1" in
fluxbox)
fbsetbg -f "$HOME"/images/wallpaper.jpg &
exec fluxbox
;;
icewm)
rox -p Default
exec icewm
;;
xfce)
exec startxfce4
;;
*)
fbpanel &
exec "$1"
;;
esac
The commands I've added before the exec's are of course just examples of actions to do before starting the different WMs.
Hope this helps.
All of your mips are belong to us!!
Offline
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions icewm,wmaker,blackbox
From /etc/slim.conf ...
HTH
Mr Green
Offline
I will give your suggestions a try with my next boot/shutdown. They seem logical enough -- I guess that's why I didn't think of trying them!?! :shock:
Also thanks for the sample .xinitrc!!! I'll test it too.
Mr. Green: I found that stuff already, but I needed the proper selection block for my .xinitrc file. I program in Java but know very little about whatever that is called that is put into the .xinitrc file. Is it bash programming? Whatever...
Thanks again for the help.
Regards,
-- Dr.U
---------------------------------------------------------------------------------
I bought some batteries, but they weren't included... -- Steven Wright
Offline
please forgive me .... I had not heard of slim so gave it a go ... seems to work just fine
set up Archlinux theme good to go ;-)
Mr Green
Offline
Well I tried out the suggestions and they work as stated: enter halt for the user and the root pw and the system goes down, reboot works the same way. Enter console for the user and you don't need a pw: just press enter and you get a login console. I noticed that if my slim.conf file had only one session listed in the sessions line then it did not show the name of the session when pressing F1. But as soon as I had more than one session listed then F1 worked:
sessions fluxbox # did not work
sessions fluxbox,blackbox # this worked
Thanks again.
Regards,
-- Dr.U
------------------------------------------------------------------------------------
I'm such a good lover because I practice a lot on my own. -- Woody Allen
Offline
the messages are only supported by certain themes....
pacman -S slim-themes
not all themes allow it
Offline
just started playing with slim and found that xinitrc.sample is not included in the package. would be nice to have it included.
Offline