From 7b52cde378186f0bffb9de1faf0eae923af995e3 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Fri, 14 May 2021 13:39:17 +0200 Subject: [PATCH] fix Nordic theme for sddm --- pkg/de-p1st-sddm-autologin-yoda/TESTED | 1 + pkg/de-p1st-sddm-theme-nordic/.install | 15 +++++++++++++++ pkg/de-p1st-sddm-theme-nordic/Main.qml.holoscript | 5 +++++ pkg/de-p1st-sddm-theme-nordic/PKGBUILD | 13 ++++++++++++- pkg/de-p1st-sddm-theme-nordic/README.md | 1 - 5 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 pkg/de-p1st-sddm-autologin-yoda/TESTED create mode 100644 pkg/de-p1st-sddm-theme-nordic/.install create mode 100644 pkg/de-p1st-sddm-theme-nordic/Main.qml.holoscript diff --git a/pkg/de-p1st-sddm-autologin-yoda/TESTED b/pkg/de-p1st-sddm-autologin-yoda/TESTED new file mode 100644 index 0000000..d983caa --- /dev/null +++ b/pkg/de-p1st-sddm-autologin-yoda/TESTED @@ -0,0 +1 @@ +autologin to xfce4 for user yoda \ No newline at end of file diff --git a/pkg/de-p1st-sddm-theme-nordic/.install b/pkg/de-p1st-sddm-theme-nordic/.install new file mode 100644 index 0000000..b754ef5 --- /dev/null +++ b/pkg/de-p1st-sddm-theme-nordic/.install @@ -0,0 +1,15 @@ +## arg 1: the new package version +post_install() { + holo apply +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + holo apply +} + +## arg 1: the old package version +post_remove() { + holo apply +} diff --git a/pkg/de-p1st-sddm-theme-nordic/Main.qml.holoscript b/pkg/de-p1st-sddm-theme-nordic/Main.qml.holoscript new file mode 100644 index 0000000..2215da5 --- /dev/null +++ b/pkg/de-p1st-sddm-theme-nordic/Main.qml.holoscript @@ -0,0 +1,5 @@ +#!/bin/sh +# stdin: default config +# stdout: modified config + +sed 's|Battery {}|//Battery {}|' diff --git a/pkg/de-p1st-sddm-theme-nordic/PKGBUILD b/pkg/de-p1st-sddm-theme-nordic/PKGBUILD index 290024e..4bb74c4 100644 --- a/pkg/de-p1st-sddm-theme-nordic/PKGBUILD +++ b/pkg/de-p1st-sddm-theme-nordic/PKGBUILD @@ -2,13 +2,20 @@ _pkgname=sddm-theme-nordic _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.1 +pkgver=0.0.2 pkgrel=1 pkgdesc="sddm with Nordic theme" arch=('any') url="https://codeberg.org/privacy1st/${_reponame}" license=('MIT') + depends=('sddm' 'sddm-nordic-theme-git') +# Without plasma-framework the following error occurs: +# Main.qml:28:1: module "org.kde.plasma.extras" is not installed +depends+=('plasma-framework') +# See TODO below +depends+=('holo' 'git') + makedepends=('git') source=("git+${url}.git") sha256sums=('SKIP') @@ -19,4 +26,8 @@ package() { cd "${_reponame}/pkg/${pkgname}" install -Dm0644 p1st-theme.conf "$pkgdir"/etc/sddm.conf.d/p1st-theme.conf + + # TODO: Fix upstream? See AUR comment: https://aur.archlinux.org/pkgbase/nordic-kde-git/#comment-807577 + # Fix Nordic theme "Main.qml" -> Property "Battery" not found / missing + install -Dm0544 Main.qml.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/usr/share/sddm/themes/Nordic/Main.qml } diff --git a/pkg/de-p1st-sddm-theme-nordic/README.md b/pkg/de-p1st-sddm-theme-nordic/README.md index 8179354..d5821a9 100644 --- a/pkg/de-p1st-sddm-theme-nordic/README.md +++ b/pkg/de-p1st-sddm-theme-nordic/README.md @@ -11,7 +11,6 @@ Install from AUR: ```shell sudo pacman -S sddm-nordic-theme-git - ``` Test the theme: