fix Nordic theme for sddm

This commit is contained in:
Daniel Langbein 2021-05-14 13:39:17 +02:00
parent b1b680ce28
commit 7b52cde378
5 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1 @@
autologin to xfce4 for user yoda

View File

@ -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
}

View File

@ -0,0 +1,5 @@
#!/bin/sh
# stdin: default config
# stdout: modified config
sed 's|Battery {}|//Battery {}|'

View File

@ -2,13 +2,20 @@
_pkgname=sddm-theme-nordic _pkgname=sddm-theme-nordic
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.1 pkgver=0.0.2
pkgrel=1 pkgrel=1
pkgdesc="sddm with Nordic theme" pkgdesc="sddm with Nordic theme"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT') license=('MIT')
depends=('sddm' 'sddm-nordic-theme-git') 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') makedepends=('git')
source=("git+${url}.git") source=("git+${url}.git")
sha256sums=('SKIP') sha256sums=('SKIP')
@ -19,4 +26,8 @@ package() {
cd "${_reponame}/pkg/${pkgname}" cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 p1st-theme.conf "$pkgdir"/etc/sddm.conf.d/p1st-theme.conf 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
} }

View File

@ -11,7 +11,6 @@ Install from AUR:
```shell ```shell
sudo pacman -S sddm-nordic-theme-git sudo pacman -S sddm-nordic-theme-git
``` ```
Test the theme: Test the theme: