diff options
author | Ken Moore <ken@ixsystems.com> | 2019-03-13 09:23:52 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2019-03-13 09:23:52 -0400 |
commit | fa1b7476df8a8ad807d7f8977557ba5164e7f7e8 (patch) | |
tree | 012505b5cb36073008afc6dc807cfb7c86235333 | |
parent | Make sure that if a blank compton.conf exists, that it is properly replaced w... (diff) | |
download | lumina-fa1b7476df8a8ad807d7f8977557ba5164e7f7e8.tar.gz lumina-fa1b7476df8a8ad807d7f8977557ba5164e7f7e8.tar.bz2 lumina-fa1b7476df8a8ad807d7f8977557ba5164e7f7e8.zip |
Add a new system config entry: theme.fluxbox
This will change the fluxbox style/theme to the designated item.
-rw-r--r-- | src-qt5/core/libLumina/LDesktopUtils.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp index 79151273..7c10cc96 100644 --- a/src-qt5/core/libLumina/LDesktopUtils.cpp +++ b/src-qt5/core/libLumina/LDesktopUtils.cpp @@ -408,6 +408,15 @@ void LDesktopUtils::LoadSystemDefaults(bool skipOS){ if(val.endsWith("%")){ val = QString::number( (screenGeom.height()*val.section("%",0,0).toDouble())/100 )+"px"; } themesettings[4] = val; } + else if(var=="theme_fluxbox"){ + QString fbinit = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/fluxbox-init"; + QStringList contents = LUtils::readFile(fbinit); + int index = contents.indexOf( contents.filter("session.styleFile:").join("") ); + QString line = "session.styleFile:\t"+val; + if(index>=0){ contents[index] = line; } + else{ contents << line; } + LUtils::writeFile(fbinit, contents, true); + } } //qDebug() << " - Now Color:" << themesettings[1] << setTheme; |