X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=0b16695befb639a8b25a4d298f6f689db974bed0;hb=da23930cdbb8de7d77ac2df4f526557d4983bd53;hp=c14e6d289d6637d0414a4f4a8a835186fed4b143;hpb=527c3cdae7fb917ee5b75ee64b3443125a2b2141;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index c14e6d2..0b16695 100755 --- a/autorandr.py +++ b/autorandr.py @@ -23,19 +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 -from distutils.version import LooseVersion as Version +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) @@ -50,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