用tab找到的:查询窗口id的命令。

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

用tab找到的:查询窗口id的命令。

#1

帖子 eexpress » 2006-10-06 23:49

$ xwininfo

xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.

xwininfo: Window id: 0x360001d "exp@exp-laptop: ~"

Absolute upper-left X: 298
Absolute upper-left Y: 201
Relative upper-left X: 298
Relative upper-left Y: 201
Width: 737
Height: 457
Depth: 24
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +298+201 -245+201 -245-142 +298-142
-geometry 80x24+298+201

看来我的截图脚本要修改成这种通用的格式了。md,-all也没有name的信息。xprop又没有id信息。不如fvwnident

$ xprop |grep 'window id # of group'
$ xprop |grep 'WM_CLASS(STRING)'
麻烦
● 鸣学
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2006-10-07 9:29

似乎不错,哈哈,记下先。
zhuzhzh
帖子: 265
注册时间: 2005-07-28 15:08

#3

帖子 zhuzhzh » 2006-10-11 17:01

i不错,蛮有用的
无声胜有声
回复