- LXDM is the lightweight display manager aimed to replace gdm in LXDE distros. The UI is implemented with GTK+. It is stil in early stages of development.
To install simply type:
# pacman -S lxdm
To make the graphical login the default method of logging into the system, edit your
/etc/inittab file (recommended) by adding or uncommenting this line:
x:5:respawn:/usr/sbin/lxdm >/dev/null 2>&1
Alternatively you can add lxdm to your list of daemons in
/etc/rc.conf. These procedures are detailed on the Display Manager page.
The configuration files for LXDM are all located in
/etc/lxdm. The main configuration file is
lxdm.conf, and is well documented in it's comments. Another file,
Xsession, is the systemwide x session configuration file and should generally not be edited. The other files in this folder are all bash scripts, which are run when certain events happen in LXDM.
LoginReady: Is executed with root priviledges when LXDM is ready to show the login window.
PreLogin: Is run as root before logging a user in.
PostLogin: Is run as the logged-in user right after they have logged in.
PostLogout: Is run as the logged-in user right after they have logged out.
PreReboot: Is run as root before rebooting with LXDM.
PreShutdown: Is run as root before poweroff with LXDM.
Expected Logout Behavior
What might be slightly surprising with LXDM is that, by default, it does not clear the last user's desktop background or kill the user's processes when that user logs out. If you desire this behaviour, you can edit
/etc/lxdm/PostLogout like this:
#!/bin/sh # Kills all your processes when you log out. killall --user $USER -TERM # Set's the desktop background to solid black. Useful if you have multiple monitors. xsetroot -solid black
If you want to log in to one account without providing a password, find the line in
/etc/lxdm/lxdm.conf that looks like this:
Uncomment it, then substitute your own username instead of "username".