X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=ad4b22b0fbeec18e7e89695d4c9a481f76cc74a9;hb=20fe858e0852cf40dc9b7e045f9e66bebc4ca022;hp=2a407760c166b1725f7324c7ee10a98ecf007b12;hpb=ef35d830fbcd748e672be363951588b4d9d568c9;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 2a40776..ad4b22b 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