Zren / material-decoration

Material-ish window decoration theme for KWin, with LIM, based on zzag's original design.
GNU General Public License v2.0
197 stars 17 forks source link

How to make Material Decoration default option for a global theme? #49

Closed spa5k closed 3 years ago

spa5k commented 3 years ago

So when I try to change the defaults of a defaults file inside look and theme folder of that theme and try to replace this part -

[kwinrc][org.kde.kdecoration2]
BorderSize=None
ButtonsOnLeft=
ButtonsOnRight=IAX
library=org.kde.kwin.aurorae
theme=__aurorae__svg__Qogir-dark-circle

to something like this

[kwinrc][org.kde.kdecoration2]
BorderSize=None
ButtonsOnLeft=
ButtonsOnRight=IAX
library=org.kde.kwin.aurorae
**theme=__aurorae__svg__Material**

It's not selecting the material decoration when I change the theme to the one above.

Any way to achieve it? thanks!!

Zren commented 3 years ago

Checkout ~/.config/kwinrc. theme= shouldn't really matter, it's library= that loads the C++ plugin.

There's no guarantee that the user will have material-decoration installed, so it might fall back to breeze.

https://github.com/Zren/material-decoration/blob/master/src/material.json#L5

[kwinrc][org.kde.kdecoration2]
library=com.github.zren.material
theme=Material

Aurorae is the SVG based window decoration plugin bundled in KWin.

https://invent.kde.org/plasma/kwin/-/blob/master/src/plugins/kdecorations/aurorae/src/aurorae.json#L11

spa5k commented 3 years ago

Thanks, it's working now. I was trying to make a custom theme for my own usage, so that is the reason.

Also thanks for all the good things you did for KDE