LXDM

LXDM is a lightweight display manager for the LXDE desktop environment.

LXDM does not support the XDMCP protocol. An alternative that does is LightDM.

Installation

Install the lxdm package, or lxdm-gtk3 for the GTK3 version. The development package is lxdm-gitAUR.

Enable the provided lxdm.service unit to start LXDM at boot.

Configuration

The configuration files for LXDM are all located in /etc/lxdm/. The main configuration file is lxdm.conf. Its format is documented in its comments. Another file, Xsession, is the systemwide x session configuration file and should generally not be edited. All other files in this directory are shell scripts, which are run when certain events happen in LXDM.

These are:

  1. is executed with root privileges when LXDM is ready to show the login window.
  2. is run as root before logging a user in.
  3. is run as the logged-in user right after they have logged in.
  4. is run as the logged-in user right after they have logged out.
  5. PreReboot is run as root before rebooting with LXDM.
  6. PreShutdown is run as root before poweroff with LXDM.

Default session

The default session can be set globally, as well as set at an individual-user level. Individual user preferences take precedence over globally set preferences for the user in question.

Globally

Edit and change the session line to whatever session or DE is desired:

Example using Xfce:

Example using Openbox:

Example using GNOME:

This is useful for themes that have no visible session selection box, and if experiencing trouble using autologin.

Per user

To define an individual user's preferred session, simply edit their respective to define the selection.

Example: user1 wants Xfce4, user2 wants Cinnamon, and user3 wants GNOME:

For user1:

[Desktop]
Session=xfce

For user2:

[Desktop]
Session=cinnamon

For user3:

[Desktop]
Session=gnome

The list of installed sessions can be displayed by using command:

$ ls /usr/share/xsessions/

Autologin

To log in to one account automatically on startup, without providing a password, find the line in that looks like this:

#autologin=dgod

Uncomment it, substituting the target user instead of dgod.

Last used options

Previously used LXDM options can be found in:

Tips and tricks

Adding face icons

A 96x96 px image (jpg or png) can optionally be displayed on a per-user basis, replacing the stock icon. Copy or symlink the target image to $HOME/.face. The package supplies some default icons suitable for the lxdm screen. Look under after installing that package.

Simultaneous users and switching users

LXDM allows multiple users to be logged into different TTYs simultaneously. The following command is used to allow another user to log in without logging out the current user:

$ lxdm -c USER_SWITCH
Note: When the new user logs in, their session is now on the NEXT TTY from tty7. For example, user1 logs in and issues the USER_SWITCH command. Now user2 logs in. User2 will be on tty7 while user1 will be on tty1.

Themes

The LXDM themes are located in .

There is only one theme provided with LXDM: Industrial. To display the background file which is part of this theme, install .

provides 6 extra themes: Archlinux, ArchlinuxFull, ArchlinuxTop, Arch-Dark, Arch-Stripes, and IndustrialArch. The ArchStripes and ArchDark themes are also packaged with lxdm-gitAUR (with different names to avoid file conflicts).

Choice of theme is configurable in :

## the theme of greeter
theme=theme_name

You can also configure LXDM to use a GTK theme (stored in ) in :

## GTK theme
gtk_theme=gtk_theme_name

Advanced Session Configuration

After a user logs on, LXDM sources all of the following files, in the below order:

  1. ~/.profile

These files can be used to set session environment variables and to start services which must set certain environment variables in order for clients in the session to be able to use the service, like ssh-agent. See Xprofile for details.

Note that LXDM does not source , so those migrating from a DM that does use this file, like SLiM, will have to move their settings elsewhere — probably . Also note LXDM does not source .

If you still want to use your file, you can add a line to the event file:

source ~/.xinitrc

LXDM also makes use of .Xresources, .Xkbmap, and .Xmodmap. See /etc/lxdm/Xsession for details on how LXDM uses system-wide and per-user configuration files to configure the session.

Troubleshooting

White flash

When using the default LXDM and a dark background image (e.g. ) there may be a short bright flash before LXDM starts. This is caused by the property of the selected GTK theme. To avoid this change to or to another dark theme.

Logout Issue

If you had trouble logging out when using lxdm (e.g. stuck, display freeze, etc..) try uncomment the reset=1 option in to refresh xserver on every logout.

gollark: Cool idea if I do this: make one simple, fairly easy to guess regex, and then tack 58 random special cases on the end.
gollark: It's not a DFA, it uses a GTech™ regex turing machine to implement Macron to do this.
gollark: Or the osmarks.net source code.
gollark: Well, you can always read the Minoteaur source code.
gollark: I use some of this sort of tooling and you basically write stuff roughly as normal.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.