X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=548f3129767ab32b52b561dc4f0f2fd6ab4bfd79;hb=b4db7ce46570138dd2992f2b45b233c5f94d2c86;hp=9db5774bc4317c1762b3d9323b970705adb67e71;hpb=b760747ba3a757f3a9a67b64147a0384d4e3eaa3;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 9db5774..548f312 100755 --- a/autorandr.py +++ b/autorandr.py @@ -23,23 +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 collections import OrderedDict +from distutils.version import LooseVersion as Version from functools import reduce from itertools import chain -from collections import OrderedDict - -import posix +try: + input = raw_input +except NameError: + pass virtual_profiles = [ # (name, description, callback) @@ -54,6 +60,7 @@ 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