From 712a0f25361eae55e895a10965f3482f177134e5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:19:29 +0100 Subject: [PATCH] create openmamba look-and-feel theme [release 5.25.1-2mamba;Sat Jun 25 2022] --- openmamba.desktop | 45 ++++++++++++++++++++++++++++++++++++++ plasma-workspace.spec | 50 +++++++++++++++++++++++++++++++++++-------- 2 files changed, 86 insertions(+), 9 deletions(-) create mode 100644 openmamba.desktop diff --git a/openmamba.desktop b/openmamba.desktop new file mode 100644 index 0000000..1b92727 --- /dev/null +++ b/openmamba.desktop @@ -0,0 +1,45 @@ +[Desktop Entry] +Name=openmamba +Comment=openmamba theme for KDE +Encoding=UTF-8 +Keywords=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate; +Keywords[ca]=Escriptori;Espai de treball;Aparença;Aparença i comportament;Sortida;Bloqueig;Suspensió;Aturada;Hibernació; +Keywords[de]=Desktop;Arbeitsfläche;Erscheinungsbild;Erscheinungsbild und Verhalten;Abmelden;Sperren;Ruhezustand;Tiefschlaf;Herunterfahren; +Keywords[el]=Επιφάνεια εργασίας;Χώρος εργασίας; Εμφάνιση;Όψη και Αίσθηση;Αποσύνδεση;Κλείδωμα;Αναστολή;Τερματισμός;Νάρκη; +Keywords[en_GB]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate; +Keywords[es]=Escritorio;Espacio de trabajo;Apariencia;Aspecto visual;Cerrar sesión;Bloquear;Suspender;Apagar;Hibernar; +Keywords[fi]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;Työpöytä;Työtila;Ulkoasu;Ulkoasu ja tuntuma;Kirjaudu ulos;Lukitse;Valmiustila;Sammuta;Lepotila; +Keywords[gl]=Escritorio;Espazo de traballo;Aparencia;Aparencia e Comportamento;Saír;Trancar;Bloquear;Suspender;Apagar;Hibernar +Keywords[hu]=Asztal;Munkaterület;Megjelenés;Kinézet;Kijelentkezés;Zárolás;Felfüggesztés;Leállítás;Hibernálás +Keywords[id]=Desktop;Ruang Kerja;Tampilan;Tampilan dan Rasa;Keluar;Kunci;Suspensi;Matikan;Hibernasi; +Keywords[it]=desktop;spazio di lavoro;aspetto;uscita;blocco;sospensione;spegnimento;ibernazione; +Keywords[ko]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;데스크톱;작업공간;모양;로그아웃;잠금;대기모드;종료;끄기;최대절전모드 +Keywords[nl]=Bureaublad;Werkruimte;Uiterlijk;Uiterlijk en gedrag;Afmelden;Vergrendelen;Onderbreken;Afsluiten;Slapen naar schijf; +Keywords[pl]=Pulpit;Przestrzeń robocza;Wygląd;Wygląd i Odczucia;Wylogowanie;Zablokowanie ;Wstrzymanie;Zamknięcie;Hibernowanie;Wrażenia; +Keywords[pt]=Ecrã;Área de Trabalho;Aparência;Aparência e Comportamento;Encerrar;Bloquear;Suspender;Desligar;Hibernar; +Keywords[pt_BR]=Área de trabalho;Espaço de trabalho;Aparência;Aparência e Comportamento;Encerrar sessão;Bloquear;Suspender;Desligar;Hibernar; +Keywords[ru]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;рабочий стол;рабочая среда;внешний вид;визуальное представление;выход;завершение сеанса;блокировка;приостановка работы;завершение работы;выключение;спящий режим;ждущий режим; +Keywords[sk]=Plocha;pracovná plocha;vzhľad;nastavenie;odhlásenie;zamknutie;uspanie;vypnutie;hibernácia; +Keywords[sl]=Namizje;delovni prostor;videz;videz in občutek;odjava;zaklep;pripravljenost;izklop;mirovanje; +Keywords[sr]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;површ;радни простор;изглед;осећај;одјављивање;закључавање;суспендовање;гашење;хибернисање; +Keywords[sr@ijekavian]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;површ;радни простор;изглед;осећај;одјављивање;закључавање;суспендовање;гашење;хибернисање; +Keywords[sr@ijekavianlatin]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;površ;radni prostor;izgled;osećaj;odjavljivanje;zaključavanje;suspendovanje;gašenje;hibernisanje; +Keywords[sr@latin]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;površ;radni prostor;izgled;osećaj;odjavljivanje;zaključavanje;suspendovanje;gašenje;hibernisanje; +Keywords[sv]=Skrivbord;Arbetsrymd;Utseende;Utseende och känsla;Utloggning;Lås;Viloläge;Avstängning;Dvala; +Keywords[tr]=Masaüstü;Çalışma Alanı;Görünüm;Görünüm ve Doku;Çık;Kilitle;Askıya Al;Kapat;Uyku; +Keywords[uk]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;стільниця;робочий простір;воркспейс;вигляд;вигляд і поведінка;вихід;вийти;заблокувати;замкнути;призупинити;вимкнути;приспати; +Keywords[x-test]=xxDesktopxx;xxWorkspacexx;xxAppearancexx;xxLook and Feelxx;xxLogoutxx;xxLockxx;xxSuspendxx;xxShutdownxx;xxHibernatexx; +Keywords[zh_CN]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;桌面;工作空间;外观;观感;注销;锁定;待机;关机;休眠; +Keywords[zh_TW]=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate; +Type=Service + +X-KDE-ServiceTypes=Plasma/LookAndFeel +X-KDE-ParentApp= +X-KDE-PluginInfo-Author=Silvan Calarco +X-KDE-PluginInfo-Category= +X-KDE-PluginInfo-Email=info@openmamba.org +X-KDE-PluginInfo-License=GPLv2+ +X-KDE-PluginInfo-Name=org.openmamba.light.desktop +X-KDE-PluginInfo-Version=1.0 +X-KDE-PluginInfo-Website=openmamba.org +X-Plasma-MainScript=defaults diff --git a/plasma-workspace.spec b/plasma-workspace.spec index e103bd1..c53b1a0 100644 --- a/plasma-workspace.spec +++ b/plasma-workspace.spec @@ -2,7 +2,7 @@ Name: plasma-workspace Version: 5.25.1 -Release: 1mamba +Release: 2mamba Summary: KDE Frameworks 5 Workspace Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -13,6 +13,7 @@ Source: http://download.kde.org/stable/plasma/%{plasmaver}/plasma-workspa Source1: plasma-workspace-pam Source2: plasma-workspace-pam-no-password Source3: openmamba.plasma.logo.png +Source4: openmamba.desktop Patch0: plasma-workspace-5.19.4-gpsd-3.21.patch License: GPL ## AUTOBUILDREQ-BEGIN @@ -134,6 +135,7 @@ Requires: powerdevil Requires: polkit-kde-agent-1 Requires: drkonqi Requires: libkquickcharts +Requires: openmamba-icons Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: plasma-workspace-common Obsoletes: plasma-workspace-common < 5.22.0 @@ -157,13 +159,32 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. +%package -n plasma-lookandfeel-openmamba +Group: Graphical Desktop/Look 'n' Feel +Summary: openmamba theme for KDE Plasma +Requires: openmamba-wallpapers + +%description -n plasma-lookandfeel-openmamba +openmamba theme for KDE Plasma. + %debug_package %prep %setup -q #-D -T +#:<< _EOF #%patch0 -p1 +# From Fedora +# Populate initial lookandfeel package +cp -a lookandfeel lookandfeel.openmamba +# Overwrite settings to configure twilight mode +cp -a lookandfeel.twilight/* lookandfeel.openmamba +install -m 0644 %{SOURCE4} lookandfeel.openmamba/metadata.desktop +cat >> CMakeLists.txt < %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/plasma.conf << _EOF @@ -187,16 +208,18 @@ _EOF %find_lang %{name}5_qt --with-qt --with-html --all-name || touch %{name}5_qt.lang +## customize plasma-lookandfeel-opemamba defaults +# from [Wallpaper] Image=Next to Image=openmambaRandom +sed -i -e 's|^Image=.*$|Image=openmambaRandom|g' \ + %{buildroot}%{_datadir}/plasma/look-and-feel/org.openmamba.light.desktop/contents/defaults +sed -i "s|images/plasma.svgz|%{_datadir}/pixmaps/system-logo-white.png|" \ + %{buildroot}%{_datadir}/plasma/look-and-feel/org.openmamba.light.desktop/contents/splash/Splash.qml + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -n lib%{name} -/sbin/ldconfig -exit 0 - -%postun -n lib%{name} -/sbin/ldconfig -exit 0 +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig %files -f %{name}5_qt.lang %defattr(-,root,root) @@ -375,7 +398,16 @@ exit 0 %dir %{_libdir}/cmake/LibColorCorrect %{_libdir}/cmake/LibColorCorrect/LibColorCorrect*.cmake +%files -n plasma-lookandfeel-openmamba +%defattr(-,root,root) +%{_datadir}/metainfo/org.openmamba.light.desktop.appdata.xml +%dir %{_datadir}/plasma/look-and-feel/org.openmamba.light.desktop +%{_datadir}/plasma/look-and-feel/org.openmamba.light.desktop/* + %changelog +* Sat Jun 25 2022 Silvan Calarco 5.25.1-2mamba +- create openmamba look-and-feel theme + * Tue Jun 21 2022 Automatic Build System 5.25.1-1mamba - automatic version update by autodist