"Mons is a Shell script to quickly manage 2-monitors display using xrandr."
- No requirement: POSIX-compliant.
- Useful: perfectly fit for quick and daily use.
- Painless: for lazy users.
- Package (AUR)
$ pacaur -S mons
- Manual
$ git clone --recursive https://github.com/Ventto/mons.git
$ cd mons
$ sudo make install
Note:
--recursive
is needed for git submodule
Usage: mons [OPTION]...
Options can not be used in conjunction.
If no argument, prints plugged-in monitor ID list.
Information:
-h: Prints this help and exits.
-v: Prints version and exits.
Two monitors:
-o: Preferred monitor only.
-s: Second monitor only.
-d: Duplicates.
-e: Extends [ top | left | right | bottom ].
More monitors:
-O: Enables only the selected monitor.
-S: Enables only two monitors [MON1,MON2:P],
MON1 and MON2 are monitor IDs,
P takes the value [R] right or [T] top for the MON2's placement.
Displays monitor list:
$ mons
0: LVDS-1 (enabled)
5: VGA-1
You have an enabled one, you want to extends the second one on the right:
$ mons -e right
You want to only display the second one:
$ mons -s
Displays monitor list:
$ mons
0: LVDS-1 (enabled)
1: DP-1 (enabled)
5: VGA-1
You may need to display only the third one:
$ mons -O 5
You may need to display the first and the third one on the right:
$ mons -S 0,5:R
Like above but you want to inverse the placement:
$ mons -S 5,0:R