X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=2a4ddb7f3baffdf10f6c6d3847ed90c18afec40f;hb=a3e0693ea48225f41222537499dd3eb132f4e5b3;hp=c14aa723869dd2a16d5aacb6f67316a2f5563ce2;hpb=9f298553bee66ae0f992946dca30009ec9e9c8e6;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index c14aa72..2a4ddb7 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.5" + try: input = raw_input except NameError: @@ -49,6 +57,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), @@ -59,19 +68,22 @@ 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 --batch run autorandr for all users with active X11 sessions +--current only list current (active) configuration(s) --config dump your current xrandr setup --debug enable verbose output +--detected only list detected (available) configuration(s) --dry-run don't change anything, only print the xrandr commands --fingerprint fingerprint your current hardware setup --force force (re)loading of a profile --skip-options