X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=blobdiff_plain;f=autorandr.py;h=9524f4274d8275ca32bb9b53c8d55673cd1a5684;hp=ad4b22b0fbeec18e7e89695d4c9a481f76cc74a9;hb=1a48d584fe533555581f3f98818cd0ad9bd92334;hpb=20fe858e0852cf40dc9b7e045f9e66bebc4ca022 diff --git a/autorandr.py b/autorandr.py index ad4b22b..9524f42 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,13 @@ 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 + +__version__ = "1.6" + try: input = raw_input except NameError: @@ -49,7 +57,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), ] @@ -58,37 +68,34 @@ help_text = """ Usage: autorandr [options] -h, --help get this small help --c, --change reload current setup +-c, --change automatically load the first detected profile +-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