]> git.lizzy.rs Git - bspwm.git/blob - contrib/bash_completion
Add new setting: borderless_singleton
[bspwm.git] / contrib / bash_completion
1 _bspc() {
2         local commands='node desktop monitor query rule wm subscribe config quit'
3
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 top_monocle_padding right_monocle_padding bottom_monocle_padding left_monocle_padding split_ratio automatic_scheme removal_adjustment initial_polarity directional_focus_tightness presel_feedback borderless_monocle gapless_monocle single_monocle borderless_singleton 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 mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen ignore_ewmh_struts center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'
5
6         COMPREPLY=()
7
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") )
12                         return 0
13                 else
14                         local second_word=${COMP_WORDS[1]}
15                         case $second_word in
16                                 config)
17                                         if [[ $COMP_CWORD -eq 2 ]] ; then
18                                                 COMPREPLY=( $(compgen -W "$settings" -- "$current_word") )
19                                                 return 0
20                                         fi
21                                         ;;
22                         esac
23                 fi
24         fi
25 }
26
27 complete -F _bspc bspc
28
29 # vim: set ft=sh: