Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option for verify method #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this seems unintentional.

-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
```
Expand Down
7 changes: 6 additions & 1 deletion src/gmc-display-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Verify but don't set the configuration"

" --logical-layout-mode Set logical layout mode\n"
" --physical-layout-mode Set physical layout mode\n"
);
Expand Down Expand Up @@ -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' },
Expand Down Expand Up @@ -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':
Expand Down