(command.CommandList
  children: [
    (command.AndOr
      ops: [Id.Op_DAmp Id.Op_DPipe]
      children: [
        (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-z>} {(DQ ($ Id.VSub_Number 1))} 
          {<Id.Lit_RBracket ']'>}
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mag='> name:mag)
              op: assign_op.Equal
              rhs: {($ Id.VSub_Number 1)}
              spids: [38]
            )
          ]
          redirects: []
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'mag='> name:mag)
              op: assign_op.Equal
              rhs: {<2>}
              spids: [43]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.ShFunction
      name: fullscreen_xmag_source
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'geometry='> name:geometry)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<xwininfo>} {<-root>})
                              (C {<grep>} {<-E>} {(DQ <geometry>)})
                              (C {<sed>} {(SQ <'s/.* \\([0-9]*x[0-9]*\\).*/\\1/'>)})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [58]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'width='> name:width)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName geometry)})
                              (C {<cut>} {<-dx>} {<-f1>})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [92]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'height='> name:height)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName geometry)})
                              (C {<cut>} {<-dx>} {<-f2>})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [110]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'xmag_menu='> name:xmag_menu)
                  op: assign_op.Equal
                  rhs: {<20>}
                  spids: [128]
                )
              ]
              redirects: []
            )
            (C {<echo>} 
              {
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: 
                    (C {<expr>} {($ Id.VSub_DollarName width)} {<'/'>} {($ Id.VSub_DollarName mag)})
                  right: <Id.Backtick_Right '`'>
                ) <x> 
                (command_sub
                  left_token: <Id.Left_Backtick '`'>
                  child: 
                    (C {<expr>} {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\('> ch:'(')} 
                      {($ Id.VSub_DollarName height)} {<->} {($ Id.VSub_DollarName xmag_menu)} 
                      {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\)'> ch:')')} {<'/'>} {($ Id.VSub_DollarName mag)}
                    )
                  right: <Id.Backtick_Right '`'>
                )
              }
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (C {<xmag>} {<-source>} 
      {
        (command_sub
          left_token: <Id.Left_Backtick '`'>
          child: (C {<fullscreen_xmag_source>})
          right: <Id.Backtick_Right '`'>
        )
      } {<-mag>} {($ Id.VSub_DollarName mag)}
    )
  ]
)