WATTR(1)
π WATTR(1) β get window attributes πͺβ¨
okay so this page is from the General Commands Manual, and itβs literally the window-attributes bestie. no cap, she tells you stuff about a window and then dips. π«Ά
π NAME π
wattr β get window attributes πΈ
β¨ SYNOPSIS β¨
wattr [bmiowhxy] wid
π DESCRIPTION π
wattr prints information about the window wid to stdout. slay. π
What info gets presented depends on the commands you give to wattr. The queried arguments are printed in the order they are requested, separated by a space. very βrespect the queueβ of it all. β¨
If no commands are given, wattr will return 0 if wid exists, and 1 otherwise. thatβs the whole vibe check, bestie. π«Ά
iβ prints wid πbβ prints widβs border width πxβ prints widβs x offset π¦yβ prints widβs y offset πwβ prints widβs width πhβ prints widβs height πΈoβwattrreturns0if theoverride_redirectattribute is set on the window π₯mβwattrreturns0if wid is mapped on screen, and1otherwise π
πΏ ENVIRONMENT πΏ
wattr acts on the X display specified by the DISPLAY variable. thatβs her stage, and sheβs main character energy on it. β¨
π EXAMPLES π
first up, the mapped check:
$ wattr m 0x01000006 && echo ismapped
ismapped
then width, height, x, y in that order:
$ wattr whxy 0x01000006
484 244 756 166
and x, y, height, width in that order:
$ wattr xyhw 0x01000006
756 166 244 484
and the no-window exit-status moment:
$ wattr 0x00000000; echo $?
1
from wmutils, dated December 13, 2014 β ty for coming to my TED talk ππ
π¦ where this page comes from
- alpine 3.24: wmutils-doc 1.7-r2 Β· ISC
- nixos 26.05: wmutils-core 1.7
- nixpkgs unstable: wmutils-core 1.7
- opensuse-leap 16.0: wmutils 1.5-bp160.1.12 Β· ISC
- opensuse-leap 16.0: wmutils 1.5-bp160.1.12 Β· ISC
- opensuse-leap 16.0: wmutils 1.5-bp160.1.12 Β· ISC
- opensuse-leap 16.0: wmutils 1.5-bp160.1.12 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms