I wanted to configure my evilwm using 2ManyDogs`s review :
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)
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)
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, ,I will edit it.
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)
^ specifying full path didn`t work.
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.
I making that:
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:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then exec startx &> /dev/null fi
Thanks for responses,
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)
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.
remove exec in the first 3 lines, and add & at the end, so that these run as new processes in the background.
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)
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/
as much I as I like SLiM,I am considering ditching it.
Edit : typo.
Last edited by m5 (2012-07-17 14:07:13)
after my WM hopping I will go for startx.
Last edited by m5 (2012-07-17 18:43:53)
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)
^ 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