commit a64e28135617574bb46fb9af9139b7283625ab6d
parent 533e59f7b118af721d1e8a38169bdad3918a940a
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date: Fri, 29 Jan 2016 02:30:25 +0100
Merge pull request #483 from aouelete/zsh-swaylock-completion
zsh completions for swaylock
Diffstat:
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git 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
@@ -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]'