From 171cb39a337dc3fa81ea2b658f42ad311be29d7a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 10 Apr 2014 22:33:33 +0200 Subject: add completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/completion | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/completion diff --git a/src/completion b/src/completion new file mode 100644 index 0000000..b9b8e93 --- /dev/null +++ b/src/completion @@ -0,0 +1,37 @@ +; nightshift - A terminal user interface for redshift +; Copyright © 2014 Mattias Andrée (maandree@member.fsf.org) +; +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + + +(nightshift + (unargumented (options -h --help) (complete --help) (desc 'Display this help message')) + (unargumented (options -V --version) (complete --version) (desc 'Show program version')) + (unargumented (options -C --copyright) (complete --copyright) (desc 'Show program copyright information')) + (unargumented (options -W --warranty) (complete --warranty) (desc 'Show program warrantly disclaimer')) + + (unargumented (options -d --daemon) (complete --daemon) (desc 'Start as daemon')) + (unargumented (options -x --reset --kill) (complete --kill) (desc 'Remove adjustment from screen')) + (unargumented (options +x --toggle) (complete --toggle) (desc 'Temporarily disable or enable adjustments')) + (unargumented (options -s --status) (complete --status) (desc 'Print status information')) + (argumented (options +c --script) (complete --script) (arg FILE) (files -f) (desc 'Load nightshift configuration script from specified file')) + + (argumented (options -c --config) (complete --config) (arg FILE) (files -f) (desc 'Load redshift settings from specified file')) + (argumented (options -b --brightness) (complete --brightness) (arg DAY:NIGHT) (files -0) (desc 'Screen brightness to set at daytime/night')) + (argumented (options -t --temperature) (complete --version) (arg DAY:NIGHT) (files -0) (desc 'Colour temperature to set at daytime/night')) + (argumented (options -l --location) (complete --location) (arg LAT:LON|PROVIDER) (files -0) (desc 'Your current location or location provider')) + (argumented (options -m --method) (complete --method) (arg METHOD) (files -0) (desc 'Method to use to set colour temperature')) + (unargumented (options -r --no-transition) (complete --no-transition) (files -0) (desc 'Disable temperature transitions')) +) + -- cgit v1.2.3-70-g09d2