File 636fbe3a250b9498dc718cc5492f948425080795.patch of Package gnome-monitor-config
From 636fbe3a250b9498dc718cc5492f948425080795 Mon Sep 17 00:00:00 2001
From: jjk5 <shaun7090@gmail.com>
Date: Sun, 28 Jan 2024 11:39:18 +0100
Subject: [PATCH] add option for verify method
---
README.md | 3 ++-
src/gmc-display-test.c | 7 ++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6ad1435..3f720b7 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,8 @@ Options for 'set':
-m, --mode Set the display resolution and refresh rate. ex: 1920x1080@60
-M, --monitor=CONNECTOR Add a monitor (given its connector) to newly added
logical monitor
- -p, --primary Mark the newly added logical monitor as primary
+ -P, --persistent Set the configuration as persistent
+ -V, --verify Set the configuration as persistent and skip verification dialogue
--logical-layout-mode Set logical layout mode
--physical-layout-mode Set physical layout mode
```
diff --git a/src/gmc-display-test.c b/src/gmc-display-test.c
index f2e0a98..dccb7de 100644
--- a/src/gmc-display-test.c
+++ b/src/gmc-display-test.c
@@ -71,7 +71,8 @@ print_help (void)
" -m, --mode Set the display resolution and refresh rate. ex: 1920x1080@60\n"
" -M, --monitor=CONNECTOR Add a monitor (given its connector) to newly added\n"
" logical monitor\n"
- " -p, --primary Mark the newly added logical monitor as primary\n"
+ " -P, --persistent Set the configuration as persistent\n"
+ " -V, --verify Set the configuration as persistent and skip verification dialogue\n"
" --logical-layout-mode Set logical layout mode\n"
" --physical-layout-mode Set physical layout mode\n"
);
@@ -523,6 +524,7 @@ set_monitors (int argc,
struct option options[] = {
{ "logical-monitor", no_argument, 0, 'L' },
{ "persistent", no_argument, 0, 'P' },
+ { "verify", no_argument, 0, 'V' },
{ "x", required_argument, 0, 'x' },
{ "y", required_argument, 0, 'y' },
{ "scale", required_argument, 0, 's' },
@@ -589,6 +591,9 @@ set_monitors (int argc,
case 'P':
method = CC_DISPLAY_METHOD_PERSISTENT;
break;
+ case 'V':
+ method = CC_DISPLAY_METHOD_VERIFY;
+ break;
case 'x':
case 'y':