]> git.lizzy.rs Git - bspwm.git/blobdiff - contrib/bash_completion
Add new setting: automatic_scheme
[bspwm.git] / contrib / bash_completion
index 64b29d44cd71c30a0b2e0c9766845018a4dd86f0..ab57d02e68e5a06a1101a2a63a3a64ae5772cd5e 100644 (file)
@@ -1,27 +1,27 @@
 _bspc() {
-    local commands='window desktop monitor query pointer rule restore control config quit'
+       local commands='node desktop monitor query rule wm subscribe config quit'
 
-    local 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'
+       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 split_ratio automatic_scheme 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 mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'
 
-    COMPREPLY=()
+       COMPREPLY=()
 
-    if [[ $COMP_CWORD -ge 1 ]] ; then
-        local current_word="${COMP_WORDS[COMP_CWORD]}"
-        if [[ $COMP_CWORD -eq 1 ]] ; then
-            COMPREPLY=( $(compgen -W "$commands" -- "$current_word") )
-            return 0
-        else
-            local second_word=${COMP_WORDS[1]}
-            case $second_word in
-                config)
-                    if [[ $COMP_CWORD -eq 2 ]] ; then
-                        COMPREPLY=( $(compgen -W "$settings" -- "$current_word") )
-                        return 0
-                    fi
-                    ;;
-            esac
-        fi
-    fi
+       if [[ $COMP_CWORD -ge 1 ]] ; then
+               local current_word="${COMP_WORDS[COMP_CWORD]}"
+               if [[ $COMP_CWORD -eq 1 ]] ; then
+                       COMPREPLY=( $(compgen -W "$commands" -- "$current_word") )
+                       return 0
+               else
+                       local second_word=${COMP_WORDS[1]}
+                       case $second_word in
+                               config)
+                                       if [[ $COMP_CWORD -eq 2 ]] ; then
+                                               COMPREPLY=( $(compgen -W "$settings" -- "$current_word") )
+                                               return 0
+                                       fi
+                                       ;;
+                       esac
+               fi
+       fi
 }
 
 complete -F _bspc bspc