設定終端窗口位置

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: 縱座標

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