aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-10 22:33:33 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-10 22:33:33 +0200
commit171cb39a337dc3fa81ea2b658f42ad311be29d7a (patch)
treef27708f70e1de3c8ef433d76be18d88429e279ac
parentm copying (diff)
downloadnightshift-171cb39a337dc3fa81ea2b658f42ad311be29d7a.tar.gz
nightshift-171cb39a337dc3fa81ea2b658f42ad311be29d7a.tar.bz2
nightshift-171cb39a337dc3fa81ea2b658f42ad311be29d7a.tar.xz
add completion
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/completion37
1 files changed, 37 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+
+
+(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'))
+)
+