X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=a37a6240542e1ca47e90eab113b61a826603673d;hb=eaa04753094d944c3513de9d4de85fb1eb2e8b7b;hp=2fac25de3735417069ca77291156f9a1dc98e661;hpb=83a911dc2b06c1e2b8c765259fb0359509194df8;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 2fac25d..a37a624 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