(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _xgamma body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)} {(-n)} {(Id.Lit_Other ':')}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:30) ) ] ) (command.Case to_match: {(DQ ($ Id.VSub_DollarName '$prev'))} arms: [ (case_arm pat_list: [{(-screen)}] action: [ (C {(local)} {(Id.Lit_VarLike 'screens=') (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:50) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [{(xrandr)} {(--query)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:56) fd: 2 arg_word: {(/dev/null)} ) ] ) (command.Simple words: [ {(sed)} {(-n)} { (SQ (Token id: Id.Lit_Chars val: '/^Screen /s|^Screen \\{1,\\}\\(.*\\):.*$|\\1|p' span_id: 68 ) ) } ] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:71) fd: 2 arg_word: {(/dev/null)} ) ] ) ] negated: F ) ] ) ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:78) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:80) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(DQ ($ Id.VSub_DollarName '$screens'))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [77] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:101) ) ] spids: [43 44 104 -1] ) (case_arm pat_list: [{(-gamma)} {(-rgamma)} {(-ggamma)} {(-bgamma)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$cur')}) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(Id.Lit_Other '*') (.) (Id.Lit_Other '*')} ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:140) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:146) words: [{(.)}] ) } spids: [145] ) ] ) ] spids: [121 142] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.PlusEqual rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:157) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:159) command_list: (command.CommandList children: [(C {(compgen)} {(-W)} {(DQ ('{0..9}'))})] ) ) } ] ) } spids: [156] ) ] ) (C {(compopt)} {(-o)} {(nospace)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:181) ) ] spids: [107 114 184 -1] ) (case_arm pat_list: [{(-display)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(Id.Lit_Other ':') (Id.Lit_Other '*')} ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(Id.Lit_Other ':') (Id.Lit_Other '*') (.) (Id.Lit_Other '*') } ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:222) ) ] action: [ (C {(local)} {(Id.Lit_VarLike 'display=') (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:235) suffix_op: (suffix_op.Unary op_id:Id.VOp1_Pound arg_word:{(':')}) ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:242) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 244 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: display span_id: 252 ) suffix_op: (suffix_op.Unary op_id: Id.VTest_ColonHyphen arg_word: {(0)} ) ) (.) ) } ) ] ) ) } ] ) } spids: [241] ) ] ) (C {(compopt)} {(-o)} {(nospace)}) ] spids: [195 224] ) (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(Id.Lit_Other ':') (Id.Lit_Other '*') (.) (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:287) ) ] action: [ (C {(local)} {(t)} {(Id.Lit_VarLike 'screens=') (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:301) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [{(xrandr)} {(--query)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:307) fd: 2 arg_word: {(/dev/null)} ) ] ) (command.Simple words: [ {(sed)} {(-ne)} { (SQ (Token id: Id.Lit_Chars val: '/^Screen /s|^Screen \\{1,\\}\\(.*\\):.*$|\\1|p' span_id: 319 ) ) } ] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:322) fd: 2 arg_word: {(/dev/null)} ) ] ) ] negated: F ) ] ) ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:t) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:331) suffix_op: (suffix_op.Unary op_id: Id.VOp1_Pound arg_word: {(':')} ) ) ) } spids: [328] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:339) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 341 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-P)} { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: t span_id: 349 ) suffix_op: (suffix_op.Unary op_id: Id.VOp1_Percent arg_word: {('.*')} ) ) (.) ) } {(-W)} {(DQ ($ Id.VSub_DollarName '$screens'))} {(--)} { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: cur span_id: 368 ) suffix_op: (suffix_op.Unary op_id: Id.VOp1_DPound arg_word: {('*.')} ) ) ) } ) ] ) ) } ] ) } spids: [338] ) ] ) ] spids: [271 289] ) (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(Id.Lit_Other '*') (Id.Lit_Other ':') (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:394) ) ] action: [ (C {(_known_hosts_real)} {(-c)} {(DQ ($ Id.VSub_DollarName '$cur'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.WordTest w: {($ Id.VSub_DollarName '$cur')} ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:421) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.PlusEqual rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:427) words: [{(Id.Lit_Other ':')}] ) } spids: [426] ) ] ) ] spids: [412 423] ) ] ) (C {(compopt)} {(-o)} {(nospace)}) ] spids: [379 396] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:451) ) ] spids: [187 188 454 -1] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(-) (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:475) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:481) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:483) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _parse_help "$1" -help )' span_id: 490 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [480] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$COMPREPLY')} right: {(Id.Lit_Other '*') (Id.BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$COMPREPLY')}) ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:532) ) ] ) ] spids: [461 477] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_xgamma)} {(xgamma)}) ] )