diff options
author | Ken Moore <ken@ixsystems.com> | 2018-03-27 14:26:40 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-03-27 14:28:20 -0400 |
commit | a6f092c08c7c34e9a160156acbdbf8e42ef3324a (patch) | |
tree | a173fcd4dbb8e822d9d9611e9b5f99ead9a211f2 /src-qt5/core-utils/lumina-xconfig/main.cpp | |
parent | Update README.md (diff) | |
download | lumina-a6f092c08c7c34e9a160156acbdbf8e42ef3324a.tar.gz lumina-a6f092c08c7c34e9a160156acbdbf8e42ef3324a.tar.bz2 lumina-a6f092c08c7c34e9a160156acbdbf8e42ef3324a.zip |
A bunch of CLI updates to lumina-xconfig:
1. Add option to list all profiles from CLI
2. Add option to apply a profile from the CLI
3. Add an option to setup all monitors in a "mirror" arrangement from the CLI
Diffstat (limited to 'src-qt5/core-utils/lumina-xconfig/main.cpp')
-rw-r--r-- | src-qt5/core-utils/lumina-xconfig/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-xconfig/main.cpp b/src-qt5/core-utils/lumina-xconfig/main.cpp index 64c70cfc..0508692b 100644 --- a/src-qt5/core-utils/lumina-xconfig/main.cpp +++ b/src-qt5/core-utils/lumina-xconfig/main.cpp @@ -22,6 +22,14 @@ int main(int argc, char ** argv) RRSettings::MirrorAll(); CLIdone = true; break; + }else if(QString(argv[i]) == "--list-profiles"){ + qDebug() << RRSettings::savedProfiles().join("\n"); + CLIdone = true; + break; + }else if(QString(argv[i]) == "--apply-profile" && argc > (i+1) ){ + RRSettings::ApplyProfile( QString(argv[i+1]) ); + CLIdone = true; + break; } } if(CLIdone){ return 0; } |