X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=blobdiff_plain;f=autorandr.py;h=9c272a79f05b8b199ae43580fe212bd3a569b7fd;hp=af1c8c3becda2fd7c7c67bd2f93b042ffb54816c;hb=refs%2Fheads%2Fwork;hpb=53d29f99275aebf14240ea95f2d7022b305738d5 diff --git a/autorandr.py b/autorandr.py index af1c8c3..9c272a7 100755 --- a/autorandr.py +++ b/autorandr.py @@ -42,6 +42,11 @@ from distutils.version import LooseVersion as Version from functools import reduce from itertools import chain +if sys.version_info.major == 2: + import ConfigParser as configparser +else: + import configparser + try: input = raw_input except NameError: @@ -49,7 +54,9 @@ except NameError: virtual_profiles = [ # (name, description, callback) + ("off", "Disable all outputs", None), ("common", "Clone all connected outputs at the largest common resolution", None), + ("clone-largest", "Clone all connected outputs with the largest resolution (scaled down if necessary)", None), ("horizontal", "Stack all connected outputs horizontally at their largest resolution", None), ("vertical", "Stack all connected outputs vertically at their largest resolution", None), ] @@ -59,36 +66,30 @@ Usage: autorandr [options] -h, --help get this small help -c, --change reload current setup +-d, --default make profile the default profile +-l, --load load profile -s, --save save your current setup to profile -r, --remove remove profile --l, --load load profile --d, --default make profile the default profile ---skip-options