文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Ubuntu技巧:设置终端仿真器窗口的默认大小(方法2)和位置

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

时间:2011-05-17  来源:UniMouS

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

(一)原理: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

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

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载