From 9e93a611cc00e5cbeddc9d8a7cb5bc93f111a060 Mon Sep 17 00:00:00 2001 From: Simon Wydooghe Date: Sun, 27 Mar 2016 19:18:01 +0200 Subject: [PATCH] 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). --- autorandr.py | 19 ++++++++++++++++++- contrib/bash_completion/autorandr | 6 +++--- 2 files changed, 21 insertions(+), 4 deletions(-) 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