Ubuntu技巧:设置终端仿真器窗口的默认大小(方法2)和位置

我发现了一种设置终端仿真器窗口默认大小和位置的方法。

(一)原理:Ubuntu下的终端仿真器默认为:gnome-terminal,通过执行gnome-terminal命令,即可打开终端仿真器。它的--geometry参数用来修改启动的行列数与窗口坐标。

执行:
$ gnome-terminal --help-window-options
Usage:
  gnome-terminal [OPTION...]

Window options; if used before the first --window or --tab argument, sets the default for all windows:
  --show-menubar                  Turn on the menubar
  --hide-menubar                  Turn off the menubar
  --maximize                      Maximise the window
  --full-screen                   Full-screen the window
  --geometry=GEOMETRY             Set the window size; for example: 80x24, or 80x24+200+200 (ROWSxCOLS+X+Y)
  --role=ROLE                     Set the window role
  --active                        Set the last specified tab as the active one in its window

(二)修改步骤:

1. 打开一个终端仿真器,将它的位置和大小调整到你希望它启动时默认的位置;
2. 执行xwininfo,记下输出的最后一行;
3. 创建一个Luncher;
4. 在Command栏中填写gnome-terminal --geometry=90x46+650+0(可自己调整);
5. DONE。

(三)尚未解决的问题:

1. geometry是什么意思?
2. 为什么完全根据xwininfo的输出修改--geometry,所得的结果不对?

2011-05-17

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

posted @ 2011-05-17 22:51  UniMouS  阅读(3278)  评论(0编辑  收藏  举报

版权所有 © 2011-2012 方一曙

Copyright © 2011-2012 Fang Yishu (UniMouS)