]> git.lizzy.rs Git - bspwm.git/blob - contrib/zsh_completion
Merge translate_position and translate_client
[bspwm.git] / contrib / zsh_completion
1 #compdef bspc
2
3 _bspc() {
4     local -a commands settings
5     commands=('window' 'desktop' 'monitor' 'query' 'pointer' 'rule' 'restore' 'control' 'config' 'quit')
6     settings=('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' 'focused_frame_opacity' 'active_frame_opacity' 'normal_frame_opacity' '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')
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 "$@"