Scroll to navigation

XPROP(1) General Commands Manual XPROP(1)

̾??

xprop - ?ץ??ѥƥ?ɽ?????ץꥱ????????

????

xprop [-help] [-grammar] [-id id] [-root] [-name name] [-frame] [-font font] [-display display] [-len n] [-notype] [-fs file] [-remove property-name] [-set property-name value] [-spy] [-f atom format [dformat]]* [format [dformat] atom]*

????

xprop ?? X ?????????Υ??????ɥ??ȥե????ȤΥץ??ѥƥ???ɽ?????뤿???Υ桼?ƥ? ???ƥ??Ǥ??롣 xprop ?ˤ????Ƥϡ????ޥ??ɹԤΰ????????Ȥäƥ??????ɥ??ޤ??ϥե????Ȥ?1 ?????򤹤롣???????ɥ??ξ????ˤϥ??????ɥ??򥯥??å????????򤹤뤳?Ȥ? ?Ǥ??롣?????ˤ??ꡢ?ץ??ѥƥ??Υꥹ?Ȥ?(???֤?)?ե????ޥåȾ?????Ϳ?? ?????롣

???ץ?????

???ޥ??ɹԥ??ץ??????γ??פ????Ϥ??롣
???ޥ??ɹԥ??ץ??????????Ƥ??Ф??롢?٤???ʸˡ????????ɽ?????롣
???Υ??ץ????????Ȥ??ȡ??оݤΥ??????ɥ????ݥ??󥿤??Ȥä????򤹤????? ???˥??ޥ??ɹԤ??饦?????ɥ? id ?????򤹤뤳?Ȥ??Ǥ??롣 ???Υ??ץ??????? X ?Υ??ץꥱ???????????ǥХå??????Ȥ????????????Ǥ? ?롣???ʤ??????оݤΥ??????ɥ????????꡼???˥ޥåפ????ʤ??????䡢?ݥ? ?󥿤????ѤǤ??ʤ????硢?ݥ??󥿤????ץꥱ??????????ư????˸?????????? ͭ???Ǥ??롣
???ΰ????????Ȥ??ȡ??ݥ??󥿤??Ȥä??оݤΥ??????ɥ??????򤹤????????ˡ? name ?Ȥ???̾???????ĥ??????ɥ??򥳥ޥ??ɹԤ??????򤹤뤳?? ???Ǥ??롣
???ΰ????????Ȥ??ȡ??桼???ϥե????? font ?Υץ??ѥƥ???ɽ?????? ?뤳?Ȥ??Ǥ??롣
???ΰ??????? X ?Υ롼?ȥ??????ɥ????оݥ??????ɥ??˻??ꤹ?롣 ???Υ??ץ??????ϡ??롼?ȥ??????ɥ???¾?Υ??????ɥ??˴????˱??????Ƥ??? ???????????Ǥ??롣
???ΰ????????Ȥ??ȡ???³???륵???Ф????ꤹ?뤳?Ȥ??Ǥ??롣 X(7) ?򻲾Ȥ??뤳?ȡ?
?ɤ߹??ߤ?ɽ?????Ԥ??ץ??ѥƥ????礭???ξ??¤? n ?Х??Ȥ˻??ꤹ ?롣
???줾???Υץ??ѥƥ??η???ɽ?????ʤ????Ȥ????ꡣ
¿???Υץ??ѥƥ????Ф????ե????ޥåȤ????Ϥ????ե??????Ȥ??? file ???Ȥ????Ȥ????ꡣ
???????ɥ?????ư?????򤹤??Ȥ?(?Ĥޤꡢ-name, -root, -id ?Τ???????Ϳ???ʤ??Ȥ?)?ˡ????饤?????ȤΥ??????ɥ????????? ??(?⤷??????)???????ɥ??ޥ͡??????Υե졼???򻲾Ȥ??뤳?Ȥ????ꤹ?롣
???ꤷ??̾???Υץ??ѥƥ??򡢻??ꤵ?줿???????ɥ????????????????Ȥ????? ???롣
???ꤷ??̾???Υץ??ѥƥ??Ȥ??Υץ??ѥƥ????ͤ????ꤷ?????????? ???ꤷ?????????ɥ??????ꤹ?롣
?ץ??ѥƥ??ѹ????٥??Ȥ??ƻ뤹?뤳?Ȥˤ??ꡢ???äȥ??????ɥ??Υץ??ѥƥ? ??Ĵ??³???롣
name ???Ф??? format ?? format ?Ǥ??뤳?Ȥ? name ???Ф??? dformat ?? dformat ?Ǥ??뤳?Ȥ??????? ???롣dformat ????ά?????????ˤϡ?" = $0+\n" ?????ꤵ?줿???Τ? ???ʤ????롣

????

???????Υץ??ѥƥ??Τ??줾???ˤĤ??ơ????򤵤줿???????ɥ????ե????Ȥ? ?????ͤϡ??ե????ޥåȾ?????Ϳ???????Ƥ????Ф??????Ȥä?ɽ???????롣 ?ե????ޥåȾ?????Ϳ???????Ƥ??ʤ????С?????Ū?ʥǥե??????ͤ????Ѥ??? ?롣???򤵤줿???????ɥ????ե????Ȥˤ????ƥץ??ѥƥ????????????Ƥ??ʤ? ???С????Υץ??ѥƥ????Ф??Ƥ? "not defined" ??ɽ???????롣?ץ??ѥƥ? ?Υꥹ?Ȥ?Ϳ???????Ƥ??ʤ??????ˤϡ????򤵤줿???????ɥ????ե????Ȥ??? ͭ???Ƥ??????ƤΥץ??ѥƥ???ɽ???????롣

???????ɥ??ϼ???4?Ĥ???ˡ?Τ????Τ????줫?????򤹤뤳?Ȥ??Ǥ??롣???? ?ˡ??롼?ȥ??????ɥ??????򤷤????????ˤ? -root ???ץ??????????ѤǤ??롣 ???򤷤??????????ɥ????롼?ȥ??????ɥ??Ǥʤ????硢???ޥ??ɹԤ????? ?򤹤???ˡ??2?Ĥ??롣???ʤ?????xwininfo ???????????? ???????ɥ? ID ???Ȥ???ˡ?ȡ????????ɥ??????äƤ???̾?????Ȥ???ˡ?Ǥ??롣-id ???? ????????10?ʿ???16?ʿ??? ID ?ֹ??ǥ??????ɥ????Ȥä????򤹤?(16?ʿ??? ??????0x ?ǻϤ??ʤ????Фʤ??ʤ?)??-name ???ץ???????̾?????Ȥäƥ????? ?ɥ??????򤹤롣

???????ɥ??????򤹤??Ǹ?????ˡ?ϡ????ޥ??ɹԤȤ??????ط????ʤ??? -font, -id, -name, -root ?Τ??????????ꤵ???Ƥ??ʤ????硢???????Υ??? ???뤬ɽ?????졢?桼???????򤷤??????????ɥ????ǥݥ??󥿤Υܥ????򥯥??? ?????뤳?Ȥ?ɽ???????Ƥ???Ǥ?դΥ??????ɥ??????򤹤뤳?Ȥ??Ǥ??롣???? ???ɥ??ǤϤʤ??ե????ȤΥץ??ѥƥ???ɽ?????????????ˤϡ?-font ???ץ??? ?????Ȥäƥ??ޥ??ɹԤ??????򤹤뤷???ʤ???

?嵭??4?ĤΥ??ץ??????ȥإ??פ򸫤뤿???? -help ???ץ????󡢥??ޥ??ɥ? ?????ξܤ???ʸˡ??ɽ?????뤿???? -grammer ???ץ????????????? ???ޥ??ɹԤǤΰ??????????ơ?ɽ?????????ץ??ѥƥ??Υե????ޥåȤȥ? ???ѥƥ???ɽ???λ????????ꤹ?뤿???˻Ȥ????롣 -len n ???ץ??????ϡ?Ϳ?????줿?ץ??ѥƥ??Τ???Ĺ???Ƥ? n ?Х??Ȥ??????ɤ߹??ߡ?ɽ?????????褦?˻??ꤹ?롣?㤨?С?????ɽ???????? ?Ȳ??ڡ????ˤʤ뤫?⤷???ʤ??롼?ȥ??????ɥ??Υ??åȥХåե???ɽ?????? ???褦?ʾ????ˤϡ????Υ??ץ???????ͭ???Ǥ??롣

?̾??ϥץ??ѥƥ?̾?Τ??줾?????Ф??ơ??ץ??ѥƥ?̾???ǽ???ɽ?????졢?? ??(?⤷??????)???η????????դ???ɽ?????졢???줫???ͤ?ɽ???????롣 -notype ???ץ??????????ꤹ???ȥץ??ѥƥ??η???ɽ???????ʤ???-fs ???ץ??????ϥץ??ѥƥ??Υե????ޥåȤ򵭽Ҥ????ե??????????ꤹ?뤿???? ?Ȥ??졢-f ???ץ??????ϥץ??ѥƥ?1?Ĥ??Ф??ƥե????ޥåȤ????ꤹ?뤿???? ?Ȥ????롣

?ץ??ѥƥ????Ф????ե????ޥåȾ????϶???Ū?ˤ?2?Ĥ???ʬ?????ʤ??? format ?? dformat ???鹽???????롣format ?ϥץ??ѥƥ? ?μºݤΥե????ޥå?(?Ĥޤꡢword, byte, long ???????ʤ?)?????ꤷ?? dformat ?ϥץ??ѥƥ????ɤΤ褦??ɽ?????뤫?????ꤹ?롣

?ʹߤ??????ˤ????Ƥϡ?format ?? dformat ?ε?????ˡ???????? ?롣?????????ۤȤ??ɤΥ桼???Ȥ??λ?????Ū???Ф??Ƥ?ɬ?פ??ʤ??Ǥ??????? ?ʤ??ʤ顢?ǥե????Ȥ??Ȥ߹??ޤ??Ƥ????ե????ޥåȤˤ????Ƥ?ɸ???ץ??? ?ƥ???ɽ?????뤿????ɬ?פ? format ?? dformat ???ޤޤ??Ƥ? ?뤫???Ǥ??롣

format ?ϡ?0, 8, 16, 32 ?Τ????줫?θ???1?İʾ??? ?ե????ޥå?ʸ????³???????ΤǤ??롣 0, 8, 16, 32 ?ο????ϥץ??ѥƥ??ˤ????ƥե??????ɤ??Ȥˤ????ĥӥåȤ? ???뤫?????ꤹ?롣0 ?????̤ʾ????ǡ??ץ??ѥƥ????Τ??Τ??б????? ?ե??????ɥ????????????Ȥ????Ȥ???̣???롣 (?????ϡ??ץ??ѥƥ??Υե??????ɤΥ??????ˤ??ä?3?Ĥΰۤʤ뷿 ?Ȥʤ? INTEGER ???Τ褦?ʡ????̤ʾ????ˤΤ?ɬ?פȤʤ롣)

?ͤ? 8 ?ξ????ˤϡ??ץ??ѥƥ??ϥХ??????Ǥ??ꡢ16?ξ????ˤϥץ??ѥƥ? ?ϥ?????Ǥ??롣????2?Ĥΰ㤤?ϡ??ץ??ѥƥ??????Ϥ??????Υޥ????Ȥ? ?դΥХ??Ƚ??????ĥޥ????ǥץ??ѥƥ????ɤߤ????????硢??????ǤϥХ? ?ȸ򴹤??Ԥ????뤬???Х??????ǤϥХ????󤬹Ԥ????ʤ??Ȥ??????Ǥ??롣 ?ץ??ѥƥ??Υե????ޥåȤ???Ǽ????ˡ?˴ؤ????ܤ????????ˤĤ??Ƥϡ?Xlib ?Υޥ˥奢???򻲾Ȥ??뤳?ȡ?

?ե??????ɤΥ??????????ꤵ?????ȡ????줾???Υե??????ɤη??????ꤹ ??ɬ?פ?????(?Ĥޤꡢ??????ʸ???󡢥??ȥ??ʤ?)?? ?????ϥե??????ɤ??ȤΥե????ޥå?ʸ??1ʸ?????Ȥäƻ??ꤹ?롣 ?ץ??ѥƥ???Ϳ?????ե????ޥå?ʸ????????¿???ե??????ɤ????äƤ??????硢 ?ե????ޥå?ʸ???ο????ۤ???ʬ?Υե??????ɤ??Ф??Ƥϡ??Ǹ??Υե????ޥ? ??ʸ????ɬ?פʤ????????֤????롣?ե????ޥå?ʸ?????Ȥ??ΰ?̣???ʲ??˼? ??:

???Υե??????ɤϥ??ȥ??ֹ??Ǥ??롣???η??Υե??????ɤΥ???????32?? ?ʤ????Фʤ??ʤ???
???Υե??????ɤϿ????ͤǤ??롣0 ?ϵ??򼨤????????ʳ????ͤϿ??򼨤???
???Υե??????ɤ?????̵???ο????Ĥޤ??????Ǥ??롣
???Υե??????ɤ??????դ??????Ǥ??롣
???Υե??????ɤϥӥåȥե饰?ν????Ǥ??롣?ե饰??1?ξ?????Ω?äƤ??롣
???Υե??????ɰʹߤ? 0 ?ޤ??ϥץ??ѥƥ??????????ޤǤΥե??????ɤϥХ? ??????ɽ???????Υե????ޥå?ʸ???ȶ??˻Ȥ????Τϥ???????8?Υե??????? ?????Ǥ??롣???Υե??????ɤ???????ʸ??????ɽ???????˻Ȥ????롣
???Υե??????ɤ??? 0 ?ޤ???°???ν??????ޤǤΥե??????ɤ? ???ݲ??ƥ?????ʸ??????ɽ???? ???Υե????ޥå?ʸ?????ǻȤ????ե??????ɤΥ??????? 8 ?????Ǥ??롣 ????ʸ?????? ICCCM ?????Υ??󥳡??ǥ??󥰤ǻȤ????뤳?Ȥȡ? ???Ϥ????????˸??ߤΥ????????Υ??󥳡??ǥ??󥰤??Ѵ??????뤳?Ȥ? ?????Ȥʤ롣
???Υե??????ɤ?16?ʿ??Ǥ???('c' ?Ȼ??Ƥ??뤬 16??ɽ???????롣 ???????ɥ?ID ????ɽ???????Ȥ??????????????Ǥ???)??

?ץ??ѥƥ?????32?ӥåȤΥե??????ɤ?3?Ļ????????κǽ??Υե??????ɤ??? ???դ???????2???ܤΥե??????ɤ?????̵????????3?Ĥ??Υե??????ɤ????ȥ? ?Ǥ??????Τ?format ??32ica ?Ǥ??롣

format ?Ȥϰۤʤꡢdformat ?Υե????ޥåȤϤ??ޤ긷̩?Ǥ? ?ʤ??? dformat ?????¤ϡ?ʸ???ȥ??å????ǻϤޤäƤϤʤ??ʤ????Ȥ????Ǥ? ?롣?????ϡ??ץ??ѥƥ?̾?䥪?ץ??????ȶ??̤Ǥ????褦?ˤ??뤿???Ǥ??롣 dformat ?ϡ?printf ?ǻȤ????Ƥ????ե????ޥå?ʸ??????Ʊ?ͤ???ˡ ???͡??ʥե??????ɤ??͡??ʾ?????ɽ???????뤿???Ρ????̤?ʸ???????ޤ??? ??????ʸ?????Ǥ??롣?㤨?? dformat ?? " is ( $0, $1 \)\n" ?Ǥ? ?????硢?ե????ޥåȤ? 32ii ?Ǥ??? POINT 3, -4 ???Ф??Ƥ? " is ( 3, -4 )\n" ??ɽ???????롣

dformat ?˴ޤޤ??? $, ?, \, ( ?ʳ???ʸ???Ϥ??Τޤ?ɽ???????롣 $, ?, \, ( ??ɽ???????ˤϤ???ʸ???????? \ ???դ??뤳?ȡ??㤨?С?$ ?? ɽ???????ˤ? \$ ?Ȥ??롣?Хå??????å??????Ȥä??ü쥷?????󥹤????? ?ϥ??硼?ȥ??åȤȤ??ƻȤ????????Τ????롣?㤨?С?\n ?ϲ???ʸ????ɽ?? ?????? \t ?ϥ???ʸ????ɽ???????롣?ޤ???\o (o??10?ʿ?)?ϡ? ʸ???????ɤ? o ?Ǥ???ʸ????ɽ???????롣

$ ?θ??˿??? n ??³?????ȡ??ֹ? n ?Υե??????ɤ?ɽ???????롣 ɽ?????????ե??????ɤΥե????ޥåȤϡ??б????? format ?ǥե????ޥ? ?Ȥ򵭽Ҥ??뤿???˻Ȥ????Ƥ????ե????ޥå?ʸ???ˤ??äƷ??ޤ롣?Ĥޤꡢ ?????? 'c' ?ǵ??Ҥ????Ƥ?????????10?ʿ???ɽ?????졢'x' ?ǵ??Ҥ????Ƥ? ???????ˤ?16?ʿ???ɽ???????롣

?ե??????ɤ??ץ??ѥƥ??˴ޤޤ??Ƥ??ʤ?????(???Τ褦?ʥץ??ѥƥ??????? ?Ĥ?????)?????????????? <field not available> ??ɽ???????롣$n+ ?ϡ??ֹ? n ?Υե??????ɡ??????ޡ??ֹ? n+1 ?Υե??????ɡ??? ???ޡ?... ?Τ褦??ɽ???????????????Ƥ????Ǹ??Υե??????ɤޤ?³???롣 ?ե??????? n ???????????Ƥ??ʤ??????ˤϡ?????ɽ???????ʤ??? ???????ͤΥꥹ?ȤˤʤäƤ????ץ??ѥƥ???ɽ???????ݤ??????Ǥ??롣

? ?Ͼ??P???Ĥޤ? if-then ʬ?Τ褦?ʤ??Τ??Ϥ????Ȥ??˻Ȥ??? ?exp(text)?ϡ?exp ??ɾ???????ͤ??????ʳ??λ??˸¤ä? text ??ɽ?????롣?????ϼ???2???ˤ?????ͭ???Ǥ??롣?????ˡ??ե饰 ?????åȤ????Ƥ??????˸¤ä?ɽ?????Ԥ????Ȥ???ǽ?ˤʤ롣?????ˡ????ֿ? ??ñ?ʤ??????Ȥ??ƤǤϤʤ???̾???Ȥ???ɽ?????뤳?Ȥ???ǽ?ˤʤ롣 exp ??ʸˡ???ʲ??˼???:

::= term | term=exp | !exp
::= n | $n | mn

! ?黻?Ҥ??????黻?Ρ?not(????)?פǤ??ꡢ0 ?? 1 ???Ѳ???????0?Ǥʤ??? ??0???Ѳ??????롣= ?????ͱ黻?ҤǤ??롣????Ū?ˤ????Ƥμ???32?ӥåȤ? ???Ȥ???ɽ???????뤿?ᡢ-1 ?? 65535 ?ϰۤʤ??ͤǤ??????????դ??뤳?ȡ? = ??2?Ĥ??ͤ????????????ˤ? 1 ???֤????ۤʤ??????ˤ? 0 ???֤??? n ?????? n ??ɽ????$n ???ֹ? n ?Υե??????ɤ? ?ͤ?ɽ???? mn ?ϡ??б????? format ?ˤ????ƥե????ޥå?ʸ???? 'm' ?Ǥ? ???ǽ??Υե??????ɤ??????ֹ? n ?Υե饰?? 1 ?ʤ??? 1 ???֤????? ???Ǥʤ????? 0 ???֤???

??: ?m3(count: $3\n) ?ϡ?(0??????????)?ֹ?3?Υե饰??Ω?äƤ????????? ?Τߥե??????? 3 ?? count ?Ȥ??????٥????դ???ɽ?????롣 ?$2=0(True)?!$2=0(False) ?ϡ??ե???????2 ?ο????ͤ?ȿ?Ф??ͤ?ɽ?????롣

?ץ??ѥƥ???ɽ???????ˤϡ?xprop ?? format ?? dformat ??ξ????ɽ?????롣xprop ?ϡ?format ?Υǥե??????? 32x ?? dformat ?Υǥե??????? " = { $0+ }\n" ???Ȥ????ˡ??????٤????ե??? ?ޥåȤθ????????ߡ??????Ĥ??ξ?????Ĵ?٤롣?ޤ????ץ??ѥƥ?̾???Ȥä? ???????Ԥ????롣???줬???Ԥ????ȥץ??ѥƥ??η????ȤäƸ??????Ԥ??? ?롣?????ˤ??ꡢ?????ե????ޥåȤΥ??åȤ??Ȥä? STRING ?????????? ???????ǡ?STRING ???Ǥ??? ?ץ??ѥƥ? WM_NAME ?򤳤??Ȱۤʤ??ե??? ?ޥåȤ????????뤳?Ȥ??Ǥ??롣???Τ褦?ˤ??ơ??????Υץ??ѥƥ????Ф??? ??Ϳ?????줿????ɽ???ե????ޥåȤ????񤭤??뤳?Ȥ??Ǥ??롣

?????ϼ??ν????ǹԤ?????: (?⤷??????)?ץ??ѥƥ?̾?ǻ??ꤵ?줿?ե????ޥ? ??(WM_NAME ?Ǥ? 8x)??-f ???ץ??????ǻ??ꤵ?줿?ե????ޥå?(?Ǹ??λ??? ?????ǽ??λ????ؤν?)??(?⤷??????)-fs ???ץ??????ǻ??ꤷ???ե??????? ???ơ?(?⤷??????)?Ķ??ѿ? XPROPFORMATS ?ǻ??ꤷ???ե??????????ơ? xprop ???Ȥ߹??ߤΥե????ޥåȤΥե????롣

-fs ???ץ????????Ķ??ѿ? XPROPFORMATS ?ǻ??Ȥ??????ե??????Υե????ޥ? ?Ȥϡ??ʲ??η????ιԤ?1?İʾ????Ĥ??ΤǤ??롣

name format [dformat]

name ?ϥץ??ѥƥ?̾??????̾???Ǥ??ꡢformat ?? name ?ȶ??˻Ȥ????? format ?Ǥ??ꡢdformat ?? name ?ȶ??˻Ȥ????? dformat ?Ǥ??롣dformat ????ά?? ???????ˤϡ?" = $0+\n" ?????ꤵ?줿???ΤȤ??ƽ????????롣

??

?롼?ȥ??????ɥ???̾????ɽ??: xprop -root WM_NAME

clock ???Ф??륦?????ɥ??ޥ͡??????ҥ??Ȥ?ɽ??: xprop -name xclock WM_HINTS

???åȥХåե?????Ƭ??ʬ??ɽ??: xprop -root -len 100 CUT_BUFFER0

???????ե????ȤΥݥ????ȥ???????ɽ??: xprop -font fixed POINT_SIZE

ID 0x200007 ?Υ??????ɥ??????ƤΥץ??ѥƥ???ɽ??: xprop -id 0x200007

?Ķ??ѿ?

?ǥե????ȤΥǥ????ץ쥤?????????롣
xprop ???????????ɲ?Ū?ʥե????ޥåȤ????Ƥ??ޤ??ե???????̾???????ꤹ?롣

??Ϣ????

X(7), xwininfo(1)

????

Mark Lillibridge, MIT Project Athena

Version 4.1.0 XFree86