mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Split swayidle from sway
This commit is contained in:
parent
d256182f49
commit
bc808680b1
7 changed files with 0 additions and 650 deletions
|
|
@ -1,22 +0,0 @@
|
|||
#compdef swayidle
|
||||
#
|
||||
# Completion script for swayidle
|
||||
#
|
||||
|
||||
local events=('timeout:Execute timeout command if there is no activity for timeout seconds'
|
||||
'before-sleep:Execute before-sleep command before sleep')
|
||||
local resume=('resume:Execute command when there is activity again')
|
||||
|
||||
if (($#words <= 2)); then
|
||||
_arguments -C \
|
||||
'(-h --help)'{-h,--help}'[Show help message and quit]' \
|
||||
'(-d)'-d'[Enable debug output]'
|
||||
_describe -t "events" 'swayidle' events
|
||||
|
||||
elif [[ "$words[-3]" == before-sleep || "$words[-3]" == resume ]]; then
|
||||
_describe -t "events" 'swayidle' events
|
||||
|
||||
elif [[ "$words[-4]" == timeout ]]; then
|
||||
_describe -t "events" 'swayidle' events
|
||||
_describe -t "resume" 'swayidle' resume
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue