From 10217e1b9bb6699cafb6359c4f82319edae32c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Mon, 21 Nov 2022 13:29:36 +0100 Subject: [PATCH] Configure package for mobile theme --- debian/control | 3 ++- debian/kali-themes-mobile.postinst | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 debian/kali-themes-mobile.postinst diff --git a/debian/control b/debian/control index 45b74afe..fb5f3df0 100644 --- a/debian/control +++ b/debian/control @@ -90,10 +90,11 @@ Description: Transitional package to install kali-themes This dummy package can be safely removed once kali-themes is installed on the system. -Package: kali-themes-phosh +Package: kali-themes-mobile Architecture: all Depends: kali-themes, + kali-wallpapers-mobile-2022, adw-gtk3-kali, ${misc:Depends}, Description: Configure Phosh desktop to use the Kali theme diff --git a/debian/kali-themes-mobile.postinst b/debian/kali-themes-mobile.postinst new file mode 100644 index 00000000..3cdf91e2 --- /dev/null +++ b/debian/kali-themes-mobile.postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +comment="Wallpaper for mobile theme" + +if grep -q "${comment}" /usr/share/plasma/desktoptheme/kali/metadata.desktop; then + cat >> /usr/share/plasma/desktoptheme/kali/metadata.desktop <<- EOF + # $comment + [Wallpaper] + defaultWallpaperTheme=NethunterProRedBlue + defaultFileSuffix=.png + defaultWidth=3800 + defaultHeight=3800 + EOF +fi + +#DEBHELPER#