twattr.1 - wmutils - X windows manipulation utilities
 (HTM) git clone git://z3bra.org/wmutils
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       twattr.1 (1185B)
       ---
            1 '\" e
            2 .Dd December 13, 2014
            3 .Dt WATTR 1
            4 .Os wmutils
            5 .Sh NAME
            6 .Nm wattr
            7 .Nd get window attributes
            8 .Sh SYNOPSIS
            9 .Nm wattr
           10 .Op Cm bmiowhxy
           11 .Ar wid
           12 .Sh DESCRIPTION
           13 .Nm
           14 prints information about the window
           15 .Ar wid
           16 to
           17 .Dv stdout .
           18 .Pp
           19 What information is presented depends on the commands given to
           20 .Nm .
           21 The queried arguments are printed in the order they are requested,
           22 separated by a space.
           23 If no commands are given,
           24 .Nm
           25 will return 0 if
           26 .Ar wid
           27 exists, and 1 otherwise.
           28 .Bl -tag -width Ds
           29 .It Cm i
           30 Print
           31 .Ar wid
           32 .It Cm b
           33 Print
           34 .Ar wid Ns \(cqs border width.
           35 .It Cm x
           36 Print
           37 .Ar wid Ns \(cqs
           38 .EQ
           39 x
           40 .EN
           41 offset.
           42 .It Cm y
           43 Print
           44 .Ar wid Ns \(cqs
           45 .EQ
           46 y
           47 .EN
           48 offset.
           49 .It Cm w
           50 Print
           51 .Ar wid Ns \(cqs width.
           52 .It Cm h
           53 Print
           54 .Ar wid Ns \(cqs
           55 height.
           56 .It Cm o
           57 .Nm
           58 returns 0 if the override_redirect attribute is set on the window.
           59 .It Cm m
           60 .Nm
           61 returns 0 if
           62 .Ar wid
           63 is mapped on screen, and 1 otherwise.
           64 .El
           65 .Sh ENVIRONMENT
           66 .Nm
           67 acts on the X display specified by the
           68 .Ev DISPLAY
           69 variable.
           70 .Sh EXAMPLES
           71 .Dl $ wattr m 0x01000006 && echo ismapped
           72 .Dl ismapped
           73 .Pp
           74 .Dl $ wattr whxy 0x01000006
           75 .Dl 484 244 756 166
           76 .Pp
           77 .Dl $ wattr xyhw 0x01000006
           78 .Dl 756 166 244 484
           79 .Pp
           80 .Dl $ wattr 0x00000000 ; echo $?
           81 .Dl 1