A simple, relaxing theme for the SDDM Login Manager. Won't wake you up at night!
SDDM is the typical greeter (i.e., login manager) for KDE Plasma Linux Systems. It is closely integrated with the Plasma desktop and with Plasma 6, the integration has become even closer.
SDDM's basic configuration is ugly, but the possibilities for customization are immense. A display manager paired with a modern distro should look good. SDDM is written using Qt libraries.
Customizing using SDDM is very easy. In most cases, SDDM looks for themes in /usr/share/sddm/themes, so any themes we want to use should be placed in that directory. Distros like Fedora often come with themes, so the directory may not be empty.
Switch to a different theme by editing the SDDM configuration file. It is located at /etc/sddm.conf. To change to the nightsky theme, for example, we would go to the [Theme] section and change it to look like:
[Theme]
Current=sddm-nightsky
To get a preview of a new SDDM theme without needing to logout and login repeatedly, we can run the sddm-greeter utility to get a preview. We would pass the directory we want to test as the argument like so:
sddm-greeter --test-mode --theme /usr/share/sddm/themes/nightskyOnce you're happy with the theme, you can apply it.
The below assumes that SDDM has been installed and configured properly. Improper configuration can lead to compilation errors. For more information see the wiki.
Git for cloning. The rest is detailed more below.
- Start by cloning the source code:
git clone https://github.com/spiritualhost/sddm-nightsky.git- Move the theme to the proper folder
sudo mv ~/sddm-nightsky /usr/share/sddm/themes- Install the Dependencies
- Arch Linux:
#QML Dependencies
sudo pacman -S qt5-base qt5-declarative qt5-quickcontrols qt5-quickcontrols2
#Font
sudo pacman -S adobe-source-code-pro-fonts- Debian
#QML Dependencies
sudo apt install qtbase5-dev qtdeclarative5-dev qml-module-qtquick2 qml-module-qtquick-controls2
#Font
sudo apt install fonts-source-code-proIf any QML package isn't found, as it may not be on older Debian versions, try:
sudo apt install qml-module-qtquick-controlsMessy fix if fonts-source-code-pro doesn't work
The system will need curl and unzip installed:
#The system will need curl and unzip installed:
sudo apt install curl unzip
#System-wide install the font
sudo mkdir -p /usr/local/share/fonts/source-code-pro
cd /usr/local/share/fonts/source-code-pro
sudo curl -L "https://github.com/adobe-fonts/source-code-pro/raw/release/TTF/SourceCodePro-Regular.ttf" -o SourceCodePro-Regular.ttf
sudo curl -L "https://github.com/adobe-fonts/source-code-pro/raw/release/TTF/SourceCodePro-Bold.ttf" -o SourceCodePro-Bold.ttf
sudo curl -L "https://github.com/adobe-fonts/source-code-pro/raw/release/TTF/SourceCodePro-It.ttf" -o SourceCodePro-Italic.ttf
sudo fc-cache -fv
fc-list | grep -i "source"Verify that the font installed properly afterwards with:
fc-list | grep -i "source code"- Create '/etc/sddm.conf' if it doesn't exist already and then add nightsky as the theme
sudo touch /etc/sddm.conf
sudo nano /etc/sddm.confChange the hostname in the theme:
sed -i "s/^hostname=.*/hostname=$(hostname)/" /usr/share/sddm/themes/sddm-nightsky/theme.confAdd the following to sddm.conf:
[Theme]
Current=sddm-nightskyThen feel free to reboot to see it in action. If anything breaks at the first reboot, jump into the TTY (usually Ctrl+Alt+F3, but varies), and delete/edit the conf. Previewing helps to show any compilation errors before they cause problems.
Some configuration settings can be changed, including the background image in the theme.conf.
- Shutdown/Reboot keys buggy on some setups
- Some distributions may require extra dependencies
- Wayland may cause the theme (and SDDM) to behave differently
Initial stylistic inspiration was the ly greeter. I hope more features can be added in the future to get even closer (e.g., the background animations).
Some minor logical inspiration came from the Maldives SDDM theme, but the changes were significant. The license is included as COPYING regardless. Copyright (C) 2012 Dr. Peter Schmidt
The wallpaper was taken from here. It was created by Paul Lichtblau and is covered under the Unsplash Free Use License.
Some sites which were helpful:
