设定终端窗口位置

Ubuntu下的启动终端窗口的命令为:gnome-terminal,可以通过–geometry 参数用来修改启动的行列数与窗口座标:
$ gnome-terminal –help-window-option
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: 80×24, or 80×24+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. 执行命令:gconf-editor,打开gnome配置编辑器, 找到如下键:

/desktop/gnome/applications/terminal/exec

并修改该项的值为:

gnome-terminal –geometry 120×30+154+70

说明:

90: 宽度

46: 高度

154:横座标

70: 纵座标

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章