From: Simon Wydooghe Date: Sun, 27 Mar 2016 17:18:01 +0000 (+0200) Subject: Add ability to remove profile X-Git-Tag: 1.0~26^2~2 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=9e93a611cc00e5cbeddc9d8a7cb5bc93f111a060 Add ability to remove profile This commit adds profile removal ability. You can use '-r' or '--remove'. Following checks are done: * not a virtual profile * profile can be found in profiles.keys() Also added the remove option to the bash completion (untested though, using zsh and quite unfamiliar with it). --- diff --git a/autorandr.py b/autorandr.py index 596d3ff..dbcf875 100755 --- a/autorandr.py +++ b/autorandr.py @@ -33,6 +33,7 @@ import posix import re import subprocess import sys +import shutil from collections import OrderedDict from distutils.version import LooseVersion as Version @@ -53,6 +54,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