X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=6fda7d4627bce331ed971fe3bbf7dda7fa6ce7b4;hb=aba8d109d4ef59ccf3f42b4a120582b11693fc19;hp=d91d2c8d4be9662b57a9c719a7e170e608eceb07;hpb=bdf8373bc2b2775d2285f96688907ae46823488c;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index d91d2c8..6fda7d4 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. # @@ -23,19 +23,22 @@ # from __future__ import print_function -import copy -import getopt import binascii +import copy +import getopt import hashlib import os +import posix import re import subprocess import sys -from distutils.version import LooseVersion as Version -from itertools import chain from collections import OrderedDict +from distutils.version import LooseVersion as Version +from functools import reduce +from itertools import chain + virtual_profiles = [ # (name, description, callback) @@ -52,10 +55,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