Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop logind integration #133

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions completions/bash/swayidle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ _swayidle()

events=(
'timeout'
'before-sleep'
)

short=(
Expand All @@ -36,10 +35,6 @@ _swayidle()
COMPREPLY=($(compgen -c -- "$cur"))
return
;;
before-sleep)
COMPREPLY=($(compgen -c -- "$cur"))
return
;;
esac

COMPREPLY+=($(compgen -W "${events[*]}" -- "$cur"))
Expand Down
6 changes: 2 additions & 4 deletions completions/fish/swayidle.fish
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# swayidle
set -l all_events timeout before-sleep after-resume lock unlock idlehint
set -l cmd_events before-sleep after-resume lock unlock
set -l time_events idlehint timeout
set -l all_events timeout
set -l time_events timeout

complete -c swayidle --arguments "$all_events"
complete -c swayidle --condition "__fish_seen_subcommand_from $cmd_events" --require-parameter
complete -c swayidle --condition "__fish_seen_subcommand_from $time_events" --exclusive

complete -c swayidle -s h --description 'show help'
Expand Down
6 changes: 1 addition & 5 deletions completions/zsh/_swayidle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# 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 events=('timeout:Execute timeout command if there is no activity for timeout seconds')
local resume=('resume:Execute command when there is activity again')

if (($#words <= 2)); then
Expand All @@ -14,9 +13,6 @@ if (($#words <= 2)); then
'(-d)'-d'[Enable debug output]' \
'(-w)'-w'[Wait for command to finish executing before continuing]'

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
Expand Down
Loading