From ad789926f4fb9fab92a8821892bc89e2d964c0ea Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:19:29 +0100 Subject: [PATCH] add custom sddm theme [release 5.25.1-6mamba;Tue Jun 28 2022] --- plasma-workspace.spec | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/plasma-workspace.spec b/plasma-workspace.spec index 92f33a6..e4122ca 100644 --- a/plasma-workspace.spec +++ b/plasma-workspace.spec @@ -2,7 +2,7 @@ Name: plasma-workspace Version: 5.25.1 -Release: 5mamba +Release: 6mamba Summary: KDE Frameworks 5 Workspace Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -173,8 +173,9 @@ openmamba theme for KDE Plasma. %debug_package %prep -%setup -q -D -T -:<< _EOF +%setup -q +#-D -T +#:<< _EOF #%patch0 -p1 # From Fedora @@ -200,7 +201,7 @@ plasma_install_package(lookandfeel.openmamba.dark org.openmamba.dark.desktop loo EOL %build -:<< _EOF +#:<< _EOF %cmake_kde5 -d build %make @@ -213,7 +214,25 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/kde install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/kde-np ln -sf %{_datadir}/pixmaps/system-logo-white.png %{buildroot}%{_datadir}/ksplash/Themes/Minimalistic/images/kdeletter.png +# make breeze sddm theme variant for openmamba +cp -alf %{buildroot}%{_datadir}/sddm/themes/breeze/ \ + %{buildroot}%{_datadir}/sddm/themes/openmamba +# Set distro vendor logo +sed -i -e 's|^showlogo=.*$|showlogo=shown|g' \ + %{buildroot}%{_datadir}/sddm/themes/openmamba/theme.conf +sed -i -e 's|^logo=.*$|logo=%{_datadir}/pixmaps/system-logo-white.png|g' \ + %{buildroot}%{_datadir}/sddm/themes/openmamba/theme.conf +# set wallpaper +sed -i -e 's|background=.*$|background=/usr/share/wallpapers/openmambaRandom/contents/images/2560x1600.png|g' \ + %{buildroot}%{_datadir}/sddm/themes/openmamba/theme.conf + install -d -m0755 %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d +cat > %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/zz_openmamba.conf << _EOF +[Theme] +Current=openmamba +CursorTheme=breeze_cursors +_EOF + cat > %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/plasma.conf << _EOF [Theme] Current=breeze @@ -438,8 +457,14 @@ _EOF %{_datadir}/plasma/look-and-feel/org.openmamba.light.desktop/* %dir %{_datadir}/plasma/look-and-feel/org.openmamba.dark.desktop %{_datadir}/plasma/look-and-feel/org.openmamba.dark.desktop/* +%{_prefix}/lib/sddm/sddm.conf.d/zz_openmamba.conf +%dir %{_datadir}/sddm/themes/openmamba +%{_datadir}/sddm/themes/openmamba/* %changelog +* Tue Jun 28 2022 Silvan Calarco 5.25.1-6mamba +- add custom sddm theme + * Mon Jun 27 2022 Silvan Calarco 5.25.1-5mamba - fix customizing color scheme