]> git.lizzy.rs Git - bspwm.git/blobdiff - contrib/zsh_completion
The insertion point might be NULL
[bspwm.git] / contrib / zsh_completion
index e696288acfe4b38a3e0a7a887bf450d9ecdaf0c4..106997f1c982c28808f3b484aa867b4fc6a06648 100644 (file)
@@ -178,6 +178,7 @@ _bspc() {
                                '*'{-n,--to-node}'[Transplant the selected node to the given node]:node selector:_bspc_selector -- node'\
                                '*'{-o,--presel-ratio}'[Set the splitting ratio of the preselection area]:preselect ratio: ( )'\
                                '*'{-p,--presel-dir}'[Preselect the splitting area of the selected node or cancel the preselection]: :_bspc_prefix -- "~" preselect presel_dir'\
+                               '*'{-y,--type}'[Set the splitting type of the selected node]: :(horizontal vertical)'\
                                '*'{-r,--ratio}'[Set the splitting ratio of the selected node (0 < ratio < 1)]: :( )'\
                                '*'{-R,--rotate}'[Rotate the tree rooted at the selected node]:angle:(90 270 180)'\
                                '*'{-s,--swap}'[Swap the selected node with the given node]:node selector:_bspc_selector -- node'\
@@ -235,7 +236,8 @@ _bspc() {
                                '*'{-O,--reorder-monitors}'[Reorder the list of monitors to match the given order]:*: :_bspc_query_names -- monitors -M'\
                                '*'{-o,--adopt-orphans}'[Manage all the unmanaged windows remaining from a previous session]'\
                                '*'{-h,--record-history}'[Enable or disable the recording of node focus history]:history:(on off)'\
-                               '*'{-g,--get-status}'[Print the current status information]'
+                               '*'{-g,--get-status}'[Print the current status information]'\
+                               '*'{-r,--restart}'[Restart the window manager]'
                        ;;
                (subscribe)
                        if [[ "$words[CURRENT-1]" != (-c|--count) ]] ;then
@@ -294,7 +296,7 @@ _bspc() {
                                        compset -P '*:'
                                        bspc rule -l 2> /dev/null |
                                                while IFS=" " read target settings ;do
-                                                       by_index+="^$((index++)):${target} ${settings}"
+                                                       by_index+="^$((++index)):${target} ${settings}"
                                                        if [ -n "$IPREFIX" ] ;then
                                                                completions+="${target#*:}"
                                                        else
@@ -315,10 +317,10 @@ _bspc() {
                        ;;
                (config)
                        local -a {look,behaviour,input}{_bool,}
-                       look_bool=(borderless_monocle gapless_monocle)
+                       look_bool=(presel_feedback borderless_monocle gapless_monocle borderless_singleton)
                        look=({normal,active,focused}_border_color {top,right,bottom,left}_padding {top,right,bottom,left}_monocle_padding presel_feedback_color border_width window_gap)
-                       behaviour_bool=(single_monocle ignore_ewmh_focus center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors)
-                       behaviour=(mapping_events_count ignore_ewmh_fullscreen external_rules_command split_ratio automatic_scheme removal_adjustment initial_polarity directional_focus_tightness status_prefix)
+                       behaviour_bool=(single_monocle removal_adjustment ignore_ewmh_focus ignore_ewmh_struts center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors)
+                       behaviour=(mapping_events_count ignore_ewmh_fullscreen external_rules_command split_ratio automatic_scheme initial_polarity directional_focus_tightness status_prefix)
                        input_bool=(swallow_first_click focus_follows_pointer pointer_follows_{focus,monitor})
                        input=(click_to_focus pointer_motion_interval pointer_modifier pointer_action{1,2,3})
                        if [[ "$CURRENT" == (2|3) ]];then