X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=596d3ffb504d20f04d3cbad2dba2956efe660ddf;hb=ac540ffafada68dfee5a992ae92f5926bc5d6849;hp=1225491d9fc492923159a817d7b026ee142a11bc;hpb=af8f2297b3296e24bec728a474fa908c35c90635;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 1225491..596d3ff 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