X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=95867a34f051d4ddaa47cfaffde6ab298696a202;hb=6af575a941cb59bfda019532a11bff7e75a6660b;hp=27340b770571e4dc2224cef383e60a11b6411d46;hpb=9049f3dedd0620b5171b632ef9712dec38ff723d;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 27340b7..95867a3 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,6 +54,7 @@ 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), @@ -60,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