You are not logged in.

#1 2005-10-29 13:21:35

Dr.U
Member
From: Ettlingen, Germany
Registered: 2005-03-03
Posts: 68

SLiM: .xinitrc changes and logouts?

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. roll

Thanks in advance,

-- Dr.U

--------------------------------------------------------------------------------------
What's the use of happiness? It can't buy you money. -- Henny Youngman

Offline

#2 2005-10-29 17:12:06

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: SLiM: .xinitrc changes and logouts?

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

#3 2005-10-29 18:09:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: SLiM: .xinitrc changes and logouts?

# 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

#4 2005-10-29 19:52:52

Dr.U
Member
From: Ettlingen, Germany
Registered: 2005-03-03
Posts: 68

Re: SLiM: .xinitrc changes and logouts?

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

#5 2005-10-29 19:56:00

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: SLiM: .xinitrc changes and logouts?

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

#6 2005-10-29 20:56:01

Dr.U
Member
From: Ettlingen, Germany
Registered: 2005-03-03
Posts: 68

Re: SLiM: .xinitrc changes and logouts?

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

#7 2005-10-30 00:14:58

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: SLiM: .xinitrc changes and logouts?

the messages are only supported by certain themes....

pacman -S slim-themes

not all themes allow it

Offline

#8 2006-02-12 17:27:07

enderst
Member
Registered: 2004-06-28
Posts: 69

Re: SLiM: .xinitrc changes and logouts?

just started playing with slim and found that xinitrc.sample is not included in the package. would be nice to have it included.

Offline

Board footer

Powered by FluxBB