From: Phillip Berndt Date: Thu, 16 Dec 2021 08:52:19 +0000 (+0100) Subject: Merge --cycle option (needs work) X-Git-Tag: 1.12~11 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9a023ca0fa8fd7a12a99e8852a063266bf49f078;hp=-c;p=deb_pkgs%2Fautorandr.git Merge --cycle option (needs work) --- 9a023ca0fa8fd7a12a99e8852a063266bf49f078 diff --combined autorandr.py index c9c4f16,0581f57..9f1f557 --- a/autorandr.py +++ b/autorandr.py @@@ -1,4 -1,4 +1,4 @@@ -#!/usr/bin/env python +#!/usr/bin/env python3 # encoding: utf-8 # # autorandr.py @@@ -39,14 -39,10 +39,14 @@@ import tim 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: @@@ -80,12 -76,12 +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