From a6f092c08c7c34e9a160156acbdbf8e42ef3324a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 27 Mar 2018 14:26:40 -0400 Subject: 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 --- src-qt5/core-utils/lumina-xconfig/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src-qt5/core-utils/lumina-xconfig/main.cpp') 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; } -- cgit