8000 GitHub - tnhh/mons: POSIX Shell script to quickly manage 2-monitors display.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tnhh/mons

 
 

Folders and files

 
NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mons

License Language (XRandR)

"Mons is a Shell script to quickly manage 2-monitors display using xrandr."

Perks

  • No requirement: POSIX-compliant.
  • Useful: perfectly fit for quick and daily use.
  • Painless: for lazy users.

Installation

  • 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

Usage: mons [OPTION]...

Options can not be used in conjunction.
If no argument, prints plugged 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.

Examples

Two monitors

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

Three monitors

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

About

POSIX Shell script to quickly manage 2-monitors display.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 96.5%
  • Makefile 3.5%
0