X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=7ad9736b136f516a7f0309a3b80b17f907b53809;hb=530cc6a39d363cb532572c1cd3ef05c0b5ddd1e2;hp=535ec31f6005a4a2f6190b5c7c6e52cdc10eb8ef;hpb=b890915df3d069523d55d9884b0a228bc02a3e4e;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 535ec31..7ad9736 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,16 +39,20 @@ 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: import configparser -__version__ = "1.10.1" +__version__ = "1.11" try: input = raw_input @@ -76,11 +80,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 --force force (re)loading of a profile / overwrite exiting files +--list list configurations --skip-options