X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=9db5774bc4317c1762b3d9323b970705adb67e71;hb=b760747ba3a757f3a9a67b64147a0384d4e3eaa3;hp=01632ee86e1f329e0ec74ca82ae24943a36c0423;hpb=2b0a226d0d370c79901d77c0d70a9f72d9e45a41;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 01632ee..9db5774 100755 --- a/autorandr.py +++ b/autorandr.py @@ -4,7 +4,7 @@ # autorandr.py # Copyright (c) 2015, Phillip Berndt # -# Experimental autorandr rewrite in Python +# Autorandr rewrite in Python # # This script aims to be fully compatible with the original autorandr. # @@ -34,9 +34,13 @@ import subprocess import sys from distutils.version import LooseVersion as Version +from functools import reduce from itertools import chain from collections import OrderedDict +import posix + + virtual_profiles = [ # (name, description, callback) ("common", "Clone all connected outputs at the largest common resolution", None), @@ -52,10 +56,13 @@ Usage: autorandr [options] -s, --save save your current setup to profile -l, --load load profile -d, --default make profile the default profile +--skip-options