SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-07-15 16:00:22

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

evilwm and slim

I wanted to configure my evilwm using 2ManyDogs`s review :
http://crunchbanglinux.org/forums/post/198480/#p198480

I created a .desktop file-in /usr/share/xsessions- for evilwm and pointed it to execute my autostart script,
but I have not installed GDM,I use SLiM as login manager which seems it doesn`t work with the guide above,
it seems that SLiM doesn`t look for session files in -/usr/share/xsessions-
where SLiM look for session files?

Edited : typo.

Last edited by m5 (2012-07-15 16:16:54)


Keep digging.
Linux beginner.

Offline

Help fund CrunchBang, donate to the project!

#2 2012-07-15 16:05:42

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: evilwm and slim

See Xaos52's excellent guide to configuring SLiM here: http://crunchbanglinux.org/forums/topic … mber-2011/

(by the way, I hope that's a typo in your original post -- the .desktop files go in /usr/share/xsessions, not /usr/share/sessions)

Last edited by pidsley (2012-07-15 16:07:14)

Offline

#3 2012-07-15 16:16:21

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: evilwm and slim

Thanks @pidsley,
I have already added evilwm to my sessions section in /etc/slim.conf ,
but it doesn`t execute my autostart script,SLiM just gives me evilwm with its default behavior.

P.S. Yeah it was a typo in first post, big_smile ,I will edit it.


Keep digging.
Linux beginner.

Offline

#4 2012-07-15 16:29:49

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: evilwm and slim

Try adding the name of your evilwm start script to slim.conf. You will probably need to specify the full path.

If you can't get that to work you can always dump SLiM for lightdm (lightdm uses xsessions ke GDM).

Last edited by pidsley (2012-07-15 16:31:55)

Offline

#5 2012-07-16 07:38:11

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: evilwm and slim

^ specifying full path didn`t work.


Keep digging.
Linux beginner.

Offline

#6 2012-07-16 08:02:58

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: evilwm and slim

Did you consider going without a login manager? All you need is an .xinitrc file with the content

exec ck-launch-session dbus-launch --exit-with-session evilvm

You can put the rest of your evilvm start stuff in .xinitrc as well, above the exec line.

Offline

#7 2012-07-16 09:34:55

mati75
Member
From: Poland
Registered: 2011-05-03
Posts: 35

Re: evilwm and slim

I making that:

in /etc/slim.conf:

login_cmd           exec /bin/sh - ~/.xinitrc %session

and in ~/.xinitrc

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session evilwm -fg black -bg white -term urxvt

But I think better is making autologin if you login on tty1:
~/.bash_profile:

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
exec startx &> /dev/null 
fi

Offline

#8 2012-07-16 13:12:57

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: evilwm and slim

Thanks for responses, smile
I am considering ditching display manager and go for startx,
but I want to be able to switch between sessions  so I wanted to make it work with SLiM,
I created .xinitrc file :

#!/bin/sh
#

# Define Xresources
userresources=$HOME/.Xresources

# Merge what is available
if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

# Run urxvt daemon
urxvtd -q -o -f

DEFAULT_SESSION="openbox-session"

case $1 in
lxde)
    exec startlxde
    ;;
i3)
    exec i3
    ;;
fluxbox)
    exec startfluxbox
    ;;
evilwm)
    exec /home/flynn/bins/xwindowskey.sh
    exec 'feh --bg-scale /home/flynn/.i3/batman.png'
    exec '/usr/bin/conky -q'
    exec 'evilwm -term rxvt-unicode'
*)
    exec $DEFAULT_SESSION
    ;;
esac

then I changed my login_cmd option -in slim.conf- like what @mati75 mentioned above,
but SLiM doesn`t run any session that I choose.
I considered using lightdm,but it`s under heavy development,since I am running sid I thought SLiM is more reliable.
what`s the problem?

Last edited by m5 (2012-07-16 13:14:46)


Keep digging.
Linux beginner.

Offline

#9 2012-07-16 19:11:54

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: evilwm and slim

LightDM is perfectly usable. I use it.

Offline

#10 2012-07-17 10:36:29

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: evilwm and slim

evilwm)
    exec /home/flynn/bins/xwindowskey.sh
    exec 'feh --bg-scale /home/flynn/.i3/batman.png'
    exec '/usr/bin/conky -q'
    exec 'evilwm -term rxvt-unicode'

This can not work.
exec means: replace the running process with the given argument.
Your shell process will be swapped for $HOME/bins/xwindowskey.sh
When that process terminates, it wont even know about the second exec because the original sh process is gone. The following commands will never be executed.

Solution:
remove exec in the first 3 lines, and add & at the end, so that these run as new processes in the background.
Like so:

evilwm)
    /home/flynn/bins/xwindowskey.sh &
    feh --bg-scale /home/flynn/.i3/batman.png &
    /usr/bin/conky -q &
    exec 'evilwm -term rxvt-unicode'

Last edited by xaos52 (2012-07-17 10:41:17)

Offline

#11 2012-07-17 14:05:03

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: evilwm and slim

Thanks @xaos52,
I fixed that but it didn`t work either,other sessions don`t work either with this .xinitrc.
I even tried .xsession file,using this thread :
http://crunchbanglinux.org/forums/topic … with-slim/
didn`t work,
as much I as I like SLiM,I am considering ditching it.

Edit : typo.

Last edited by m5 (2012-07-17 14:07:13)


Keep digging.
Linux beginner.

Offline

#12 2012-07-17 18:41:13

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: evilwm and slim

installing lightdm.
after my WM hopping I will go for startx. big_smile

Last edited by m5 (2012-07-17 18:43:53)


Keep digging.
Linux beginner.

Offline

#13 2012-07-17 18:51:15

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: evilwm and slim

I use .xinitrc for WM hopping, but I prefer the low-tech method. I just have one line for each wm and they are all commented out except the one I'm currently using. If I want to switch WMs I just edit the file.

#exec sithwm
exec ratpoison
#exec openbox-session
#exec musca
#exec fluxbox
#exec spectrwm

Last edited by pidsley (2012-07-17 18:51:46)

Offline

#14 2012-07-17 21:51:49

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: evilwm and slim

^ I've run into similar troubles trying to set up dwm with SLiM - in fact, I was going to start a thread about it...

I can't get my head around what combination of .desktop/.xinitrc/.xsessions files I need and which of those I use a custom start script with, etc, etc...


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo