add custom sddm theme [release 5.25.1-6mamba;Tue Jun 28 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 10:19:29 +01:00
parent 855b47fe5c
commit ad789926f4

View File

@ -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 <silvan.calarco@mambasoft.it> 5.25.1-6mamba
- add custom sddm theme
* Mon Jun 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.25.1-5mamba
- fix customizing color scheme