X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=5a0a6860fea0c82bf72e1521781cbd06513f71a4;hb=c060377e8e9fd0a13e159820f9a950597fa51482;hp=f0cf4ac78f13b604ab3e08a94a1f954b1fdd8c2c;hpb=df8880fa4bfd295f71cdb25f2ac46d677f35d148;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index f0cf4ac..5a0a686 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), @@ -65,13 +74,16 @@ Usage: autorandr [options] -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