X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=contrib%2Fzsh_completion;h=69c25952442d3e4fa5fe792873610a8104a8d7d1;hb=e3f0f9c1fca0853785f4c5b50520d1ad682aba6c;hp=7e971f6a4417149865d4f203102e2399c4d6192b;hpb=e0b6cd3cd42863addcc9a719ea6fe2e44883c72d;p=bspwm.git diff --git a/contrib/zsh_completion b/contrib/zsh_completion index 7e971f6..69c2595 100644 --- a/contrib/zsh_completion +++ b/contrib/zsh_completion @@ -1,23 +1,23 @@ #compdef bspc _bspc() { - local -a commands settings - commands=('window' 'desktop' 'monitor' 'query' 'pointer' 'rule' 'restore' 'control' 'config' 'quit') - 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') - if (( CURRENT == 2 )) ; then - _values 'command' "$commands[@]" - elif (( CURRENT == 3 )) ; then - case $words[2] in - config) - _values 'setting' "$settings[@]" - ;; - *) - return 1 - ;; - esac - else - return 1 - fi + local -a commands settings + commands=('node' 'desktop' 'monitor' 'query' 'rule' 'restore' 'wm' 'subscribe' 'config' 'quit') + 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' 'directional_focus_tightness' 'borderless_monocle' 'gapless_monocle' 'single_monocle' 'pointer_motion_interval' 'pointer_modifier' 'pointer_action1' 'pointer_action2' 'pointer_action3' 'click_to_focus' 'swallow_first_click' 'focus_follows_pointer' 'pointer_follows_focus' 'pointer_follows_monitor' 'ignore_ewmh_focus' 'center_pseudo_tiled' 'honor_size_hints' 'remove_disabled_monitors' 'remove_unplugged_monitors' 'merge_overlapping_monitors') + if (( CURRENT == 2 )) ; then + _values 'command' "$commands[@]" + elif (( CURRENT == 3 )) ; then + case $words[2] in + config) + _values 'setting' "$settings[@]" + ;; + *) + return 1 + ;; + esac + else + return 1 + fi } _bspc "$@"