X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=670865acac7d5678a5a6eef3fc6f713a568270a9;hb=c583fb43899ccf1744661f66e489e0b082dd7b16;hp=6fda7d4627bce331ed971fe3bbf7dda7fa6ce7b4;hpb=aba8d109d4ef59ccf3f42b4a120582b11693fc19;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 6fda7d4..670865a 100755 --- a/autorandr.py +++ b/autorandr.py @@ -30,15 +30,22 @@ import getopt import hashlib import os import posix +import pwd import re import subprocess import sys +import shutil +import time 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) @@ -53,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