]> git.lizzy.rs Git - bspwm.git/blob - zsh_completion
Don't trust WM_PROTOCOLS
[bspwm.git] / 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' 'urgent_border_color' 'border_width' 'window_gap' 'split_ratio' 'borderless_monocle' 'gapless_monocle' 'focus_follows_pointer' 'pointer_follows_monitor' 'adaptative_raise' 'apply_floating_atom' 'auto_alternate' 'auto_cancel' 'history_aware_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 "$@"