2 local commands='window desktop monitor query pointer rule restore control config quit'
4 local settings='external_rules_command status_prefix focused_border_color active_border_color normal_border_color presel_border_color focused_locked_border_color active_locked_border_color normal_locked_border_color focused_sticky_border_color normal_sticky_border_color focused_private_border_color active_private_border_color normal_private_border_color urgent_border_color border_width window_gap top_padding right_padding bottom_padding left_padding split_ratio growth_factor borderless_monocle gapless_monocle focus_follows_pointer pointer_follows_monitor apply_floating_atom auto_alternate auto_cancel history_aware_focus ignore_ewmh_focus remove_disabled_monitor'
8 if [[ $COMP_CWORD -ge 1 ]] ; then
9 local current_word="${COMP_WORDS[COMP_CWORD]}"
10 if [[ $COMP_CWORD -eq 1 ]] ; then
11 COMPREPLY=( $(compgen -W "$commands" -- "$current_word") )
14 local second_word=${COMP_WORDS[1]}
17 if [[ $COMP_CWORD -eq 2 ]] ; then
18 COMPREPLY=( $(compgen -W "$settings" -- "$current_word") )
27 complete -F _bspc bspc