X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=7ad9736b136f516a7f0309a3b80b17f907b53809;hb=530cc6a39d363cb532572c1cd3ef05c0b5ddd1e2;hp=b781f4d77b5b91fa565eb14e3e22732c26baeaac;hpb=2bd9faadcdde741134c827ab7d5e9c0321f00722;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index b781f4d..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 @@ -26,7 +26,6 @@ from __future__ import print_function import binascii import copy -import fnmatch import getopt import hashlib import os @@ -40,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.9" +__version__ = "1.11" try: input = raw_input @@ -77,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