From 46e020a80097c43820a233afda6d010d64e689d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Venri=C3=A8s?= Date: Mon, 30 Oct 2017 15:47:07 +0100 Subject: [PATCH] readme: Add primary option section (#16) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Venriès --- README.md | 33 +++++++++++++++++++++++++++++---- mons | 9 ++++++--- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e44308f..23ef42f 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,8 @@ $ sudo make install # Usage ``` -Usage: mons [OPTION]... - -Without argument, it prints plugged-in monitor list with their ids. -Options are exclusive and can be used in conjunction with --dpi option. +Without argument, it prints connected monitors list with their names and ids. +Options are exclusive and can be used in conjunction with extra options. Information: -h Prints this help and exits. @@ -68,6 +66,11 @@ More monitors: Extra (in-conjunction options): --dpi Set the DPI, a strictly positive value within the range [0 ; 27432]. + --primary + Select a connected monitor as the primary output. Run the script + without argument to print monitors information, the names are in the + second column between ids and status. The primary monitor is marked + by an asterisk. Daemon mode: -a Performs an automatic display if it detects only one monitor. @@ -157,6 +160,28 @@ Use the `--dpi ` option in conjunction with all others options. $ mons [OPTIONS] --dpi ``` +## Primary monitor + +You might choose one of your monitors as the main one. +You can use the `--primary ` option alone or in conjunction with all +others options. +`` refers to the monitor name that appears in the list of connected +monitors (ex: `LVDS-1` or `VGA-1`): + +``` +$ mons +0:* LVDS-1 (enabled) +5: VGA-1 +``` + +The '*' character means that the monitor is the primary one: + +``` +$ mons --primary VGA-1 +0: LVDS-1 (enabled) +5:* VGA-1 + +``` ## Daemon mode diff --git a/mons b/mons index 590e7c5..a1a5a18 100755 --- a/mons +++ b/mons @@ -30,8 +30,8 @@ fi usage() { echo 'Usage: mons [OPTION]... -Without argument, it prints plugged-in monitor list with their ids. -Options are exclusive and can be used in conjunction with --dpi option. +Without argument, it prints connected monitors list with their names and ids. +Options are exclusive and can be used in conjunction with extra options. Information: -h Prints this help and exits. @@ -60,7 +60,10 @@ Extra (in-conjunction options): --dpi Set the DPI, a strictly positive value within the range [0 ; 27432]. --primary - Select a monitor as the primary output. + Select a connected monitor as the primary output. Run the script + without argument to print monitors information, the names are in the + second column between ids and status. The primary monitor is marked + by an asterisk. Daemon mode: -a Performs an automatic display if it detects only one monitor.