X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=d54ade89fc27895153d8568fd1d3f8256b40d4ff;hb=bc032ec25e998d3cbd958cf0f6179b4fe2fe28d2;hp=e5ab42fdd0308695e720b6ada0415ccdd8751c0e;hpb=e176ffa24a71d0e4e005f6adc053dcd2cf3cbed7;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index e5ab42f..d54ade8 100755 --- a/autorandr.py +++ b/autorandr.py @@ -26,6 +26,7 @@ from __future__ import print_function import binascii import copy +import fnmatch import getopt import hashlib import os @@ -42,6 +43,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 +55,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,32 +67,27 @@ 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