有些程序,例如urxvt可以自己支持geometry参数,有些软件则不能,比如google-chrome。
我想要的效果是fvwm启动的时候,自动启动urxvt和google-chrome。并且设置他们窗口的位置和大小。
我现在用窗口 resize命令这些可以做。但是我想知道fvwm能不能自动完成。
fvwm 自动控制窗口的geometry
-
- 帖子: 60
- 注册时间: 2008-04-30 9:58
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 60
- 注册时间: 2008-04-30 9:58
Re: fvwm 自动控制窗口的geometry
我看resizemove 没有参数制定特定的窗口。 用什么办法聚焦制定的端口呢?
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 60
- 注册时间: 2008-04-30 9:58
Re: fvwm 自动控制窗口的geometry
看了一下man page ,基本搞定了。现在遇到一个新的问题是,不知道怎么匹配virtaulbox 虚拟机窗口。
我用xwininfo -name urxvt 可以批评urxvt, 用xwininfo -name googlechrome 可以匹配google chrome .
但是用xwininfo -name VirtualBox 匹配不了 virtaubox的窗口。
然后我用xwininfo -all >/tmp/log.1 的方式看了一下virtualbox 的窗口信息,不知道该用那个关键字来匹配。谁能普及下xwindows的相关知识啊。
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x1c00004 "xp work [正在运行] - Oracle VM VirtualBox"
Root window id: 0x293 (the root window) (has no name)
Parent window id: 0x1000180 (has no name)
4 children:
0x1c00015 (has no name): () 1024x21+0+789 +0+767
0x1c00013 (has no name): () 1024x21+0+0 +0+-22
0x1c00011 (has no name): () 1024x768+0+21 +0+-1
1 child:
0x1c0001f (has no name): () 1024x768+0+0 +0+-1
3 children:
0x1c0001b (has no name): () 16x696+486+0 +486+-1
0x1c00019 (has no name): () 486x16+0+696 +0+695
0x1c0001d (has no name): () 1024x768+0+0 +0+-1
2 children:
0x2400001 "Chromium Render SPU": ("foo" "Chromium") 1x1+0+0 +0+-1
0x1c000b8 (has no name): () 100x30+0+0 +0+-1
0x1c0000f (has no name): () 100x30+0+0 +0+-22
Absolute upper-left X: 0
Absolute upper-left Y: -22
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1024
Height: 810
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: StaticGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+-22 -1920+-22 -1920-292 +0-292
-geometry 1024x810+0+-22
Bit gravity: NorthWestGravity
Window gravity: StaticGravity
Backing-store hint: NotUseful
Backing-planes to be preserved: 0xffffffff
Backing pixel: 0
Save-unders: No
Someone wants these events:
KeyPress
KeyRelease
ButtonPress
ButtonRelease
EnterWindow
LeaveWindow
PointerMotion
ButtonMotion
KeymapState
Exposure
StructureNotify
FocusChange
PropertyChange
ColormapChange
Do not propagate these events:
ButtonPress
ButtonRelease
Override redirection?: No
Window manager hints:
Client accepts input or input focus: Yes
Initial state is Normal State
Displayed on desktop 0
Window type:
Normal
Window state:
Below
Process id: 2805 on host debian
Frame extents: 0, 0, 0, 0
Normal window size hints:
User supplied location: 0, 0
Program supplied location: 0, 0
User supplied size: 640 by 522
Program supplied size: 640 by 522
Program supplied minimum size: 250 by 99
Program supplied window gravity: StaticGravity
No zoom window size hints defined
No window shape defined
No border shape defined
我用xwininfo -name urxvt 可以批评urxvt, 用xwininfo -name googlechrome 可以匹配google chrome .
但是用xwininfo -name VirtualBox 匹配不了 virtaubox的窗口。
然后我用xwininfo -all >/tmp/log.1 的方式看了一下virtualbox 的窗口信息,不知道该用那个关键字来匹配。谁能普及下xwindows的相关知识啊。
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x1c00004 "xp work [正在运行] - Oracle VM VirtualBox"
Root window id: 0x293 (the root window) (has no name)
Parent window id: 0x1000180 (has no name)
4 children:
0x1c00015 (has no name): () 1024x21+0+789 +0+767
0x1c00013 (has no name): () 1024x21+0+0 +0+-22
0x1c00011 (has no name): () 1024x768+0+21 +0+-1
1 child:
0x1c0001f (has no name): () 1024x768+0+0 +0+-1
3 children:
0x1c0001b (has no name): () 16x696+486+0 +486+-1
0x1c00019 (has no name): () 486x16+0+696 +0+695
0x1c0001d (has no name): () 1024x768+0+0 +0+-1
2 children:
0x2400001 "Chromium Render SPU": ("foo" "Chromium") 1x1+0+0 +0+-1
0x1c000b8 (has no name): () 100x30+0+0 +0+-1
0x1c0000f (has no name): () 100x30+0+0 +0+-22
Absolute upper-left X: 0
Absolute upper-left Y: -22
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1024
Height: 810
Depth: 24
Visual: 0x21
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: StaticGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+-22 -1920+-22 -1920-292 +0-292
-geometry 1024x810+0+-22
Bit gravity: NorthWestGravity
Window gravity: StaticGravity
Backing-store hint: NotUseful
Backing-planes to be preserved: 0xffffffff
Backing pixel: 0
Save-unders: No
Someone wants these events:
KeyPress
KeyRelease
ButtonPress
ButtonRelease
EnterWindow
LeaveWindow
PointerMotion
ButtonMotion
KeymapState
Exposure
StructureNotify
FocusChange
PropertyChange
ColormapChange
Do not propagate these events:
ButtonPress
ButtonRelease
Override redirection?: No
Window manager hints:
Client accepts input or input focus: Yes
Initial state is Normal State
Displayed on desktop 0
Window type:
Normal
Window state:
Below
Process id: 2805 on host debian
Frame extents: 0, 0, 0, 0
Normal window size hints:
User supplied location: 0, 0
Program supplied location: 0, 0
User supplied size: 640 by 522
Program supplied size: 640 by 522
Program supplied minimum size: 250 by 99
Program supplied window gravity: StaticGravity
No zoom window size hints defined
No window shape defined
No border shape defined