<div dir="ltr">
<div class="gmail-_3cjCphgls6DH-irkVaA0GM"><div style="color:rgb(26,26,27)" class="gmail-_292iotee39Lmt0MkQZ2hPV gmail-RichTextJSON-root"><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">Hi
guys, I'm in process of creating a customized KDE Global theme called
GentooX for my Gentoo distribution that I'm in process of creating. I
have used the <strong class="gmail-_12FoOEddL7j_RgMQN0SNeU">Plasma Look And Feel Explorer</strong> from <strong class="gmail-_12FoOEddL7j_RgMQN0SNeU">plasma-sdk</strong> to create my theme, and my distro's postinstall script uses something like this to apply the theme:</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">kpackagetool5 -i "/usr/src/theme/GentooX Breeze Dark Transparent.tar.gz"</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">lookandfeeltool --apply GentooX`</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">However
after issuing the above 2 commands the "Use desktop layout from theme"
is not activated in System Settings resulting in panels not being
arranged properly etc. How can I apply "Use desktop layout from theme"
from a bash script of KDE's ECMAScript? <a href="https://i.redd.it/phpenx8jdwm41.jpg">https://i.redd.it/phpenx8jdwm41.jpg</a></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I
think the org.kde.plasma.desktop-layout.js file gets executed when "Use
desktop layout from theme" is checked. I have tried something like this
but it didn't apply that checkbox:</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">script="/home/gentoox/.local/share/plasma/look-and-feel/GentooX/contents/layouts/org.kde.plasma.desktop-layout.js"</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">num=$(dbus-send --print-reply --dest=org.kde.KWin \</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">/Scripting org.kde.kwin.Scripting.loadScript \</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">string:"$script" | awk 'END {print $2}' )</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">dbus-send --print-reply --dest=org.kde.KWin /$num \</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><a href="https://org.kde.kwin.Scripting.run" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener noreferrer nofollow ugc" target="_blank">org.kde.kwin.Scripting.run</a></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I
also tried placing org.kde.plasma.desktop-layout.js from my GentooX
theme in `kf5-config --path
data`/plasma/shells/org.kde.plasma.desktop/updates/` hoping it would
auto-apply on first logon but it too didn't work.</p></div></div>
</div>