From 2018a18a44191503dcedcef3af3f208367aa7d44 Mon Sep 17 00:00:00 2001 From: Thomas Duckworth Date: Thu, 20 Nov 2025 18:07:25 +1100 Subject: [PATCH] Set up a writable overlay for SDDM themes Allows changing the SDDM wallpaper and the installation of new themes. This is temporary until plasma-login-manager is adopted. --- .../systemd/system-preset/50-kde-linux.preset | 1 + .../system/kde-linux-sddm-themes.mount | 22 +++++++++++++++++++ .../usr/lib/tmpfiles.d/sddmthemes.conf | 9 ++++++++ 3 files changed, 32 insertions(+) create mode 100644 mkosi.extra/usr/lib/systemd/system/kde-linux-sddm-themes.mount create mode 100644 mkosi.extra/usr/lib/tmpfiles.d/sddmthemes.conf diff --git a/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset b/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset index c264bda..41307a8 100644 --- a/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset +++ b/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset @@ -21,6 +21,7 @@ enable tuned-ppd.service enable thermald.service enable pcscd.socket enable kde-linux-configure-firefox.path +enable kde-linux-sddm-themes.mount # nvidia specific services (shouldn't affect non-nvidia hardware) enable nvidia-suspend.service diff --git a/mkosi.extra/usr/lib/systemd/system/kde-linux-sddm-themes.mount b/mkosi.extra/usr/lib/systemd/system/kde-linux-sddm-themes.mount new file mode 100644 index 0000000..3dab0a1 --- /dev/null +++ b/mkosi.extra/usr/lib/systemd/system/kde-linux-sddm-themes.mount @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +# SPDX-FileCopyrightText: 2025 Thomas Duckworth + +# Allows changing the SDDM wallpaper and the installation of new themes. +# Temporary until plasma-login-manager is adopted. +# Also see https://github.com/sddm/sddm/issues/1561 + +[Unit] +Description=Set up a writable SDDM themes overlay +RequiresMountsFor=/usr /var +ConditionPathExists=/usr/share/sddm +ConditionPathExists=/var/sddm_themes/themes +ConditionPathExists=/var/sddm_themes/themes.work + +[Mount] +Type=overlay +What=overlay +Where=/usr/share/sddm/themes +Options=lowerdir=/usr/share/sddm/themes,upperdir=/var/sddm_themes/themes,workdir=/var/sddm_themes/themes.work + +[Install] +WantedBy=multi-user.target diff --git a/mkosi.extra/usr/lib/tmpfiles.d/sddmthemes.conf b/mkosi.extra/usr/lib/tmpfiles.d/sddmthemes.conf new file mode 100644 index 0000000..d558560 --- /dev/null +++ b/mkosi.extra/usr/lib/tmpfiles.d/sddmthemes.conf @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +# SPDX-FileCopyrightText: none + +# Allows changing the SDDM wallpaper and the installation of new themes. +# Temporary until plasma-login-manager is adopted. +# Also see https://github.com/sddm/sddm/issues/1561 + +d /var/sddm_themes/themes 0755 - - - +d /var/sddm_themes/themes.work 0755 - - -