X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=5082ebd08d6489e3d092766ec463dbb189af9ef7;hb=2184cf58ac94acc2b5e060b6c25757441d6cb68d;hp=c33246f4ddb9c7b0a2052dc645299a36fe9976a7;hpb=89bf1ac166e2c124c2b0bd687138b8fddbe74c47;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index c33246f..5082ebd 100755 --- a/autorandr.py +++ b/autorandr.py @@ -23,19 +23,29 @@ # from __future__ import print_function -import copy -import getopt import binascii +import copy +import getopt import hashlib import os +import posix +import pwd import re import subprocess import sys -from distutils.version import LooseVersion as Version +import shutil +import time -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,14 +60,19 @@ 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