X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=cc9d9c8b9d0e56527d9c47a344a0e70eefa228c5;hb=cbae7c8eff0b5f804ebf8cff8f86239d55b23c05;hp=c9c4f16985c9012ed9f9a92574fb389646314b7a;hpb=c78ca22a22eef1f77fc47a8dc3ed5dc2929d1ccc;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index c9c4f16..cc9d9c8 100755 --- a/autorandr.py +++ b/autorandr.py @@ -28,10 +28,12 @@ import binascii import copy import getopt import hashlib +import math import os import posix import pwd import re +import shlex import subprocess import sys import shutil @@ -42,17 +44,13 @@ from collections import OrderedDict from functools import reduce from itertools import chain -try: - from packaging.version import Version -except ModuleNotFoundError: - from distutils.version import LooseVersion as Version if sys.version_info.major == 2: import ConfigParser as configparser else: import configparser -__version__ = "1.11" +__version__ = "1.13.1" try: input = raw_input @@ -66,6 +64,22 @@ virtual_profiles = [ ("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), + ("horizontal-reverse", "Stack all connected outputs horizontally at their largest resolution in reverse order", None), + ("vertical-reverse", "Stack all connected outputs vertically at their largest resolution in reverse order", None), +] + +properties = [ + "Colorspace", + "max bpc", + "aspect ratio", + "Broadcast RGB", + "audio", + "non-desktop", + "TearFree", + "underscan vborder", + "underscan hborder", + "underscan", + "scaling mode", ] help_text = """ @@ -80,10 +94,13 @@ Usage: autorandr [options] --batch run autorandr for all users with active X11 sessions --current only list current (active) configuration(s) --config dump your current xrandr setup +--cycle automatically load the next detected profile --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 +--ignore-lid treat outputs as connected even if their lids are closed +--match-edid match diplays based on edid instead of name --force force (re)loading of a profile / overwrite exiting files --list list configurations --skip-options