X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=a65322d90c4ea4168a4748ba47befb5423e1de85;hb=a997298c5da19ee9eb808bac9b6c494798f7f924;hp=ce6856a0830a254449857003145041cb8dd62663;hpb=12f7af1a7ae9d0fe86d7615ab1390b838c5d2178;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index ce6856a..a65322d 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,18 +23,27 @@ # 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 +import shutil -from itertools import chain from collections import OrderedDict +from distutils.version import LooseVersion as Version +from functools import reduce +from itertools import chain + +try: + input = raw_input +except NameError: + pass virtual_profiles = [ # (name, description, callback) @@ -49,12 +58,16 @@ Usage: autorandr [options] -h, --help get this small help -c, --change reload current setup -s, --save save your current setup to profile +-r, --remove remove profile -l, --load load profile -d, --default make profile the default profile +--skip-options