]> git.lizzy.rs Git - bspwm.git/blob - contrib/zsh_completion
Remove obsolete shell completion
[bspwm.git] / contrib / zsh_completion
1 #compdef bspc
2
3 _bspc() {
4         local -a commands settings
5         commands=('node' 'desktop' 'monitor' 'query' 'rule' 'wm' 'subscribe' 'config' 'quit')
6         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')
7         if (( CURRENT == 2 )) ; then
8                 _values 'command' "$commands[@]"
9         elif (( CURRENT == 3 )) ; then
10                 case $words[2] in
11                         config)
12                                 _values 'setting' "$settings[@]"
13                                 ;;
14                         *)
15                                 return 1
16                                 ;;
17                 esac
18         else
19                 return 1
20         fi
21 }
22
23 _bspc "$@"