mikaela.github.io/blog/_posts/2015-10-17-archlinux_change_login_dm.md

74 lines
2.5 KiB
Markdown
Raw Normal View History

---
layout: post
comments: true
2018-09-25 09:19:24 +02:00
title: "Changing Display Manager (login screen) with Arch Linux"
category: [english]
2018-09-25 09:19:24 +02:00
tags: [arch, linux, display manager]
redirect_from:
- /antergos-dm.html
2018-11-25 23:51:24 +01:00
- /english/2015/10/17/archlinux_change_login_dm.html
2018-09-25 09:19:24 +02:00
- /english/2015/10/17/antergos_change_login_dm.html
sitemap: false
---
2024-06-19 07:19:44 +02:00
_Also applies to other distributions based on it, how do you change the display
manager, aka login screen._
2023-02-22 19:28:38 +01:00
- `--needed` makes pacman not install packages that are already installed.
- uncommented line = line that doesn't begin with `#`.
- to change DM you don't need to reboot, you can also
2024-06-19 07:19:44 +02:00
`sudo systemctl stop olddm` and `sudo systemctl start newdm`, but this logs
you out.
- my personal recommendation is using LightDM if it works for you, otherwise
sddm. I personally use LightDM, because sddm is missing support for
`sudo passwd -de user`
[sddm/sddm#472](https://github.com/sddm/sddm/issues/472)
## LightDM gtk greeter
2023-02-22 19:28:38 +01:00
- `sudo pacman --needed -S lightdm lightdm-gtk-greeter accountsservice numlockx`
2024-06-19 07:19:44 +02:00
Edit the file `/etc/lightdm/lightdm.conf` and find the uncommented line that
starts with `greeter-session=` and change it to
`greeter-session=lightdm-gtk-greeter`.
2024-06-19 07:19:44 +02:00
If you have keyboard with [numpad] you might want to enable Num Lock by default
by finding the uncommented line starting with `greeter-setup-script=` and
changing it to `greeter-setup-script=/usr/bin/numlockx on`. If there isn't
uncommented line anywhere in the file, just uncomment one or add it under the
commented line.
Then enable it by running `sudo systemctl enable -f lightdm` and reboot.
## sddm
2023-02-22 19:28:38 +01:00
- `sudo pacman --needed -S sddm`
2024-06-19 07:19:44 +02:00
SDDM is simple display manager for all desktop environments and is successor of
KDM which is the KDE Display Manager.
To create a config file and enable it for next reboot:
```
sddm --example-config | sudo tee /etc/sddm.conf
sudo systemctl enable -f sddm
```
2024-06-19 07:19:44 +02:00
The lines you might want to change are the one starting with `Nucmlock=` and I
recommend changing it to `Numlock=on` if you have the [numpad]. The other line
starts with `Current=` and is used to select the current theme. Available themes
can be seen with `ls /usr/share/sddm/themes`.
2024-06-19 07:19:44 +02:00
KDE users might also want to install `sddm-kcm` which gives GUI for controlling
sddm.
## gdm
2023-02-22 19:28:38 +01:00
- `sudo pacman --needed -S gdm`
2024-06-19 07:19:44 +02:00
The last display manager I am mentioning is the Gnome Display Manager and is
only for Gnome users and I am not so familiar with it and I believe using it is
just `sudo systemctl enable -f gdm`.
2023-02-22 19:28:38 +01:00
[numpad]: https://en.wikipedia.org/wiki/numpad