diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-12 09:40:09 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-12 11:24:06 -0500 |
commit | bc808680b173d5a3c4732265b33e2e8bd81e4d9b (patch) | |
tree | 800d9f0ba88f37c2dd35aae09fcdbec91c0532c3 /completions/zsh | |
parent | Merge pull request #3411 from RedSoxFan/fix-brace-detect-seeking (diff) | |
download | sway-bc808680b173d5a3c4732265b33e2e8bd81e4d9b.tar.gz sway-bc808680b173d5a3c4732265b33e2e8bd81e4d9b.tar.zst sway-bc808680b173d5a3c4732265b33e2e8bd81e4d9b.zip |
Split swayidle from sway
Diffstat (limited to 'completions/zsh')
-rw-r--r-- | completions/zsh/_swayidle | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/completions/zsh/_swayidle b/completions/zsh/_swayidle deleted file mode 100644 index b419bc2c..00000000 --- a/completions/zsh/_swayidle +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #compdef swayidle | ||
2 | # | ||
3 | # Completion script for swayidle | ||
4 | # | ||
5 | |||
6 | local events=('timeout:Execute timeout command if there is no activity for timeout seconds' | ||
7 | 'before-sleep:Execute before-sleep command before sleep') | ||
8 | local resume=('resume:Execute command when there is activity again') | ||
9 | |||
10 | if (($#words <= 2)); then | ||
11 | _arguments -C \ | ||
12 | '(-h --help)'{-h,--help}'[Show help message and quit]' \ | ||
13 | '(-d)'-d'[Enable debug output]' | ||
14 | _describe -t "events" 'swayidle' events | ||
15 | |||
16 | elif [[ "$words[-3]" == before-sleep || "$words[-3]" == resume ]]; then | ||
17 | _describe -t "events" 'swayidle' events | ||
18 | |||
19 | elif [[ "$words[-4]" == timeout ]]; then | ||
20 | _describe -t "events" 'swayidle' events | ||
21 | _describe -t "resume" 'swayidle' resume | ||
22 | fi | ||