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