2 local commands='node desktop monitor query rule restore wm subscribe config quit'
4 local settings='external_rules_command status_prefix normal_border_color active_border_color focused_border_color presel_feedback_color border_width window_gap top_padding right_padding bottom_padding left_padding split_ratio initial_polarity borderless_monocle gapless_monocle leaf_monocle pointer_modifier click_to_focus focus_follows_pointer pointer_follows_focus pointer_follows_monitor history_aware_focus focus_by_distance ignore_ewmh_focus center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'
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