X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=dbcf8753d2d08bf16f93aa425abc38936b53e064;hb=9e93a611cc00e5cbeddc9d8a7cb5bc93f111a060;hp=f517655661512bdbd1e8e9613d9c0b6d708878ec;hpb=96aec5bbede2615f181383caf5f3e14fbe9e4c53;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index f517655..dbcf875 100755 --- a/autorandr.py +++ b/autorandr.py @@ -4,7 +4,7 @@ # autorandr.py # Copyright (c) 2015, Phillip Berndt # -# Experimental autorandr rewrite in Python +# Autorandr rewrite in Python # # This script aims to be fully compatible with the original autorandr. # @@ -23,19 +23,23 @@ # from __future__ import print_function -import copy -import getopt import binascii +import copy +import getopt import hashlib import os +import posix import re import subprocess import sys -from distutils.version import LooseVersion as Version +import shutil -from itertools import chain from collections import OrderedDict +from distutils.version import LooseVersion as Version +from functools import reduce +from itertools import chain + virtual_profiles = [ # (name, description, callback) @@ -50,12 +54,16 @@ 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