summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNippy <nippy@Beller-Mac-mini.lan>2026-09-07 20:03:09 +0200
committerNippy <nippy@Beller-Mac-mini.lan>2026-09-07 20:03:09 +0200
commitdd245b55ed473b7443341f1e9b547a0fe1993098 (patch)
tree01ec0094aa49fd2461c20266ee3b5fc85531a73a
parent36088dfa9a0b85710ca6a8ec801e6d34aff642a3 (diff)
downloadRaveOS-PKGBUILD-dd245b55ed473b7443341f1e9b547a0fe1993098.tar.gz
RaveOS-PKGBUILD-dd245b55ed473b7443341f1e9b547a0fe1993098.zip
added clipboard kde
-rw-r--r--raveos-plasma-theme/.SRCINFO2
-rw-r--r--raveos-plasma-theme/PKGBUILD2
-rwxr-xr-xraveos-plasma-theme/raveos-plasma-first-login.sh44
3 files changed, 25 insertions, 23 deletions
diff --git a/raveos-plasma-theme/.SRCINFO b/raveos-plasma-theme/.SRCINFO
index da3c96d..e0ceeb8 100644
--- a/raveos-plasma-theme/.SRCINFO
+++ b/raveos-plasma-theme/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = raveos-plasma-theme
pkgdesc = RaveOS Plasma theme payload and installer
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = https://raveos.local
install = raveos-plasma-theme.install
arch = any
diff --git a/raveos-plasma-theme/PKGBUILD b/raveos-plasma-theme/PKGBUILD
index 0152a44..29465be 100644
--- a/raveos-plasma-theme/PKGBUILD
+++ b/raveos-plasma-theme/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=raveos-plasma-theme
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="RaveOS Plasma theme payload and installer"
arch=('any')
url="https://raveos.local"
diff --git a/raveos-plasma-theme/raveos-plasma-first-login.sh b/raveos-plasma-theme/raveos-plasma-first-login.sh
index ce3561d..f16f43d 100755
--- a/raveos-plasma-theme/raveos-plasma-first-login.sh
+++ b/raveos-plasma-theme/raveos-plasma-first-login.sh
@@ -42,28 +42,30 @@ if [[ -n "$QDBUS" ]]; then
d[i].writeConfig('FillMode', 2);
}
}
- if ('${kickoff_image}' !== '') {
- function setKickoff(applet, path) {
- var g = [['Configuration', 'General'], ['General']];
- for (var i = 0; i < g.length; i++) {
- applet.currentConfigGroup = g[i];
- applet.writeConfig('useCustomButtonImage', 'true');
- applet.writeConfig('customButtonImage', 'file://' + path);
- applet.writeConfig('icon', path);
- }
- }
- var p = panels();
- for (var i = 0; i < p.length; i++) {
- var a = p[i].applets;
- for (var j = 0; j < a.length; j++) {
- var pl = a[j].pluginName;
- if (pl === 'org.kde.plasma.kickoff' || pl === 'org.kde.plasma.kicker' || pl === 'org.kde.plasma.simplemenu' || pl === 'org.kde.plasma.kickoffdashboard') {
- setKickoff(a[j], '${kickoff_image}');
- }
- }
- }
- }
" >/dev/null 2>&1 || true
fi
+if [[ -f "${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc" ]] && command -v kwriteconfig6 >/dev/null 2>&1; then
+ while IFS=: read -r containment applet; do
+ [[ -n "${containment}" && -n "${applet}" ]] || continue
+ kwriteconfig6 --file "${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc" \
+ --group Containments --group "${containment}" --group Applets \
+ --group "${applet}" --group Configuration --group General \
+ --key useCustomButtonImage true
+ kwriteconfig6 --file "${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc" \
+ --group Containments --group "${containment}" --group Applets \
+ --group "${applet}" --group Configuration --group General \
+ --key customButtonImage "file://${kickoff_image}"
+ kwriteconfig6 --file "${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc" \
+ --group Containments --group "${containment}" --group Applets \
+ --group "${applet}" --group Configuration --group General \
+ --key icon "${kickoff_image}"
+ done < <(
+ awk '
+ match($0, /^\[Containments\]\[([0-9]+)\]\[Applets\]\[([0-9]+)\]$/, m) { c=m[1]; a=m[2]; next }
+ /^plugin=org\.kde\.plasma\.(kickoff|kicker|simplemenu|kickoffdashboard)$/ && c != "" && a != "" { print c ":" a }
+ ' "${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc" | sort -u
+ )
+fi
+
touch "${marker_file}"