From 7ac0fbe8e36b9ac6e221cd79c33fafd31a1a7ab6 Mon Sep 17 00:00:00 2001 From: Aaron Ouellette Date: Thu, 28 Jan 2016 17:41:46 -0500 Subject: [PATCH] zsh completions for swaylock --- completions/zsh/CMakeLists.txt | 2 +- completions/zsh/_swaylock | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 completions/zsh/_swaylock diff --git a/completions/zsh/CMakeLists.txt b/completions/zsh/CMakeLists.txt index 561636f2..ac307d7d 100644 --- a/completions/zsh/CMakeLists.txt +++ b/completions/zsh/CMakeLists.txt @@ -1,4 +1,4 @@ install( - FILES _sway _swaymsg _swaygrab + FILES _sway _swaymsg _swaygrab _swaylock DESTINATION share/zsh/site-functions/ ) diff --git a/completions/zsh/_swaylock b/completions/zsh/_swaylock new file mode 100644 index 00000000..6163c089 --- /dev/null +++ b/completions/zsh/_swaylock @@ -0,0 +1,11 @@ +#compdef swaylock +# +# Completion script for swaylock +# + +_arguments -s \ + '(-v --version)'{-v,--version}'[Show the version number and quit]' \ + '(-h --help)'{-h,--help}'[Show help message and quit]' \ + '(-c --color)'{-c --color}'[Specify a color (rrggbb) instead of white]' \ + '(-i --image)'{-i --image}'[Display an image]' \ + '(-s --scaling)'{-s --scaling}'[Scaling mode: stretch, fill, fit, center, tile]'