# Used for SLiM
DEFAULT=startlxde
xrdb .Xresources
CK="ck-launch-session dbus-launch --exit-with-session"
case $1 in
xfce4)
exec ${CK} startxfce4
;;
gnome)
exec ${CK} gnome-session
;;
lxde)
exec ${CK} startlxde
;;
amiwm)
exec amiwm
;;
kde4)
exec ${CK} /usr/local/kde4/bin/startkde
;;
*)
exec ${CK} $DEFAULT
;;
esac
#!/bin/sh
exec /usr/local/bin/windowmanager
Name=*
Exec=/usr/local/bin/*
both .xinitrc and .xsesssion :
Then .xsession should be made executable, so the login manager can use it.Code:#!/bin/sh exec /usr/local/bin/windowmanager
I did not run x11/slim from ~/.xinitrc. I enabled it in /etc/rc.conf. By default, the xsessions folder was /usr/local/share/xsessions where x11-wm/i3 had already created a session file :It appears you ran slim and the window manager from .xinitrc alone?
% pkg which /usr/local/share/xsessions/i3.desktop
/usr/local/share/xsessions/i3.desktop was installed by package i3-4.9
if [ "$1" = "i3" ]
then
feh --bg-fill ~/.i3/wallpapers/freebsd-binary.png
fi
I don't think this is a good idea. As I told you, I used this file and this file is needed (as far as I understood) by x11/slim. I gave you the lines I had for the wallpaper, not the whole ~/.xinitrc file. As you can see from Thread how-to-configure-slim.48747, you also need a line withWhen I delete .xinitrc it fails to log in.
exec $1
[Desktop Entry]
Name=i3
Comment=improved dynamic tiling window manager
Exec=i3
TryExec=i3
Type=Application
X-LightDM-DesktopName=i3
DesktopNames=i3