X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=ec159bf6a0b5fc4a85b855f58cfba04b4a371f38;hb=6b814e115768437778816483dd239774dddb14ee;hp=f47a994ca2209040569ab76283ea8b2ef45f92f8;hpb=c1c074ab894f517d4f5194de3359c213e50fb9f0;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index f47a994..ec159bf 100755 --- a/autorandr.py +++ b/autorandr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # encoding: utf-8 # # autorandr.py @@ -39,10 +39,14 @@ import time import glob from collections import OrderedDict -from distutils.version import LooseVersion as Version 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: @@ -90,11 +94,14 @@ 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 +--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