# slickSDDM

![assets](assets/initial.png)

![assets](assets/enter.png)

> [!WARNING]
> This theme requires **SDDM v0.21.0 or newer**. Make sure your distro provides the correct version before installing.

# TRANSLATIONS

1. consult docs/*
2. consult TRANSLATORS.md

# Dependencies

- SDDM ≥ 0.21;
- QT ≥ 6.5;
- qt6-svg;
- qt6-virtualkeyboard
- qt6-multimedia

## Install script

1. clone the repo

```
git clone https://github.com/ubuntubudgie/slickSDDM.git
cd slickSDDM/
````

2. ```sudo mkdir /usr/share/sddm/themes/yourthemename```
3. Create a similar file in the yourthemename folder based on ```sddm-conf/50-ubuntu-budgie.conf```
4. Make sure you change ```Current=``` to be yourthemename
5. test your changes
   
```sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/yourthemename```

## install systemd units

from the systemd folder install to /usr/lib/systemd/system

for debian packaging postinst

```
#!/bin/bash
set -e

if [ "$1" = "configure" ]; then
    # Reload systemd daemon
    systemctl daemon-reload || true
    
    # Enable and start units
    systemctl enable sddm-backgrounds-cache.timer || true
    systemctl enable sddm-backgrounds-cache.path || true
    systemctl start sddm-backgrounds-cache.timer || true
    systemctl start sddm-backgrounds-cache.path || true
    
    # Generate initial cache
    /usr/share/sddm/themes/ubuntu-budgie-login/scripts/update-sddm-backgrounds-cache || true
fi

#DEBHELPER#
```

for debian packaging prerm

```
#!/bin/bash
set -e

if [ "$1" = "remove" ]; then
    # Stop and disable units
    systemctl stop sddm-backgrounds-cache.timer || true
    systemctl stop sddm-backgrounds-cache.path || true
    systemctl disable sddm-backgrounds-cache.timer || true
    systemctl disable sddm-backgrounds-cache.path || true
fi

#DEBHELPER#
```

## Customization

There is a bash script called slick-customize that can be used to configure the theme

```
cd slickSDDM
sudo ./slicksddm-customize -i
```

You should ship a copy of your theme.conf file in the same folder called theme.conf.example to allow the script to restore to defaults if requested.

You should update slicksddm-customize to point to yourthemename


# Acknowledgements

- [uiriansan/SilentSDDM](https://github.com/uiriansan/SilentSDDM): major thanks - basis for this theme
- [Keyitdev/sddm-astronaut-theme](https://github.com/Keyitdev/sddm-astronaut-theme): inspiration and code reference;
- [Match-Yang/sddm-deepin](https://github.com/Match-Yang/sddm-deepin): inspiration and code reference;
- [qt/qtvirtualkeyboard](https://github.com/qt/qtvirtualkeyboard): code reference;
- [iconify.design](https://iconify.design/): icons

# License

All code inherits the same GPL-3 license as from SilentSDDM
All faces.png inherits the same GPL-2 license as from budgie-control-center user-accounts/data/faces where the .jpg images have beenn converted to .png equivalents.
