diff options
| author | kj_sh604 | 2025-12-28 23:06:19 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-12-28 23:06:19 -0500 |
| commit | ad094454576194585293a1c73282c0de9fc7e392 (patch) | |
| tree | d9ac97caa3f4def757667bbf7f047ee92c5d00e4 | |
| parent | 7cd1985aacb3eb8593c08095f3202fc5f9c3dda1 (diff) | |
kj-gitbot: elementary-xfce-icons-inherits-hook-kj_sh604/
5 files changed, 58 insertions, 0 deletions
diff --git a/elementary-xfce-icons-inherits-hook-kj_sh604/.SRCINFO b/elementary-xfce-icons-inherits-hook-kj_sh604/.SRCINFO new file mode 100644 index 0000000..36dd29f --- /dev/null +++ b/elementary-xfce-icons-inherits-hook-kj_sh604/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = elementary-xfce-icons-inherits-hook-kj_sh604 + pkgdesc = Pacman hook to modify elementary-xfce icon theme inheritance + pkgver = 2025.12.28 + pkgrel = 1 + arch = any + license = GPL + depends = pacman + optdepends = elementary-xfce-icons: elementary xfce icon theme + optdepends = elementary-xfce-icons-git: elementary xfce icon theme (git version) + source = elementary-xfce-icons-inherits.hook + source = elementary-xfce-icons-inherits.sh + sha256sums = 5cdd2c579b07fe08a2c694e08d207c8e1c9aef195222f99534a948bbc1f73907 + sha256sums = a564c9984376373a52629f072286e7624195cc5069ab46255b550714ce8f91e9 + +pkgname = elementary-xfce-icons-inherits-hook-kj_sh604 diff --git a/elementary-xfce-icons-inherits-hook-kj_sh604/.gitignore b/elementary-xfce-icons-inherits-hook-kj_sh604/.gitignore new file mode 100644 index 0000000..8d78c83 --- /dev/null +++ b/elementary-xfce-icons-inherits-hook-kj_sh604/.gitignore @@ -0,0 +1,3 @@ +pkg/ +src/ +*.tar* diff --git a/elementary-xfce-icons-inherits-hook-kj_sh604/PKGBUILD b/elementary-xfce-icons-inherits-hook-kj_sh604/PKGBUILD new file mode 100644 index 0000000..bb2ae5e --- /dev/null +++ b/elementary-xfce-icons-inherits-hook-kj_sh604/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: kj_sh604 +pkgname=elementary-xfce-icons-inherits-hook-kj_sh604 +pkgver=2025.12.28 +pkgrel=1 +pkgdesc="Pacman hook to modify elementary-xfce icon theme inheritance" +arch=('any') +url="" +license=('GPL') +depends=('pacman') +optdepends=('elementary-xfce-icons: elementary xfce icon theme' + 'elementary-xfce-icons-git: elementary xfce icon theme (git version)') +source=('elementary-xfce-icons-inherits.hook' + 'elementary-xfce-icons-inherits.sh') +sha256sums=('5cdd2c579b07fe08a2c694e08d207c8e1c9aef195222f99534a948bbc1f73907' + 'a564c9984376373a52629f072286e7624195cc5069ab46255b550714ce8f91e9') + +package() { + install -Dm644 "${srcdir}/elementary-xfce-icons-inherits.hook" \ + "${pkgdir}/usr/share/libalpm/hooks/elementary-xfce-icons-inherits.hook" + install -Dm755 "${srcdir}/elementary-xfce-icons-inherits.sh" \ + "${pkgdir}/usr/share/libalpm/scripts/elementary-xfce-icons-inherits.sh" +} diff --git a/elementary-xfce-icons-inherits-hook-kj_sh604/elementary-xfce-icons-inherits.hook b/elementary-xfce-icons-inherits-hook-kj_sh604/elementary-xfce-icons-inherits.hook new file mode 100644 index 0000000..253bd35 --- /dev/null +++ b/elementary-xfce-icons-inherits-hook-kj_sh604/elementary-xfce-icons-inherits.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = elementary-xfce-icons +Target = elementary-xfce-icons-git + +[Action] +Description = Modifying elementary-xfce icon theme inheritance... +When = PostTransaction +Exec = /usr/share/libalpm/scripts/elementary-xfce-icons-inherits.sh diff --git a/elementary-xfce-icons-inherits-hook-kj_sh604/elementary-xfce-icons-inherits.sh b/elementary-xfce-icons-inherits-hook-kj_sh604/elementary-xfce-icons-inherits.sh new file mode 100644 index 0000000..8541d2f --- /dev/null +++ b/elementary-xfce-icons-inherits-hook-kj_sh604/elementary-xfce-icons-inherits.sh @@ -0,0 +1,7 @@ +#!/bin/bash +theme_file="/usr/share/icons/elementary-xfce/index.theme" +new_inherits="Inherits=elementary,Yaru-wartybrown-dark,Yaru-wartybrown,Yaru-dark,Humanity,hicolor" + +if [[ -f "$theme_file" ]]; then + sed -i "s/^Inherits=.*/$new_inherits/" "$theme_file" +fi |
