Cra*_*aig 48
@Bhargav 接近最大化窗口所需的值 - 您只需要使用大数字。
Profile Preferences从Edit菜单中选择。Use custom default terminal size并输入对屏幕来说太大的默认大小,例如 240 列和 100 行。新的终端窗口应该最大化。
我可以补充一点,你的问题有点含糊,标题要求全屏(我认为它填满整个屏幕,没有面板或统一栏可见)但实际问题问它如何自动最大化(填满桌面空间留下面板和统一栏可见),这是我书中的两个不同要求。
根据我在这里给出的建议: 如何使终端启动最大化?
小智 23
虽然用户使用 Compiz 有一个可接受的答案,但我个人不喜欢 Compiz,并且想要一种“更干净”的方式。
如果您在~/.local/share/applications/gnome-terminal-fullscreen.desktop.
使用文本编辑器并将其放入其中:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Terminal Fullscreen
Comment=Use the command line in fullscreen
Exec=/usr/bin/gnome-terminal --window --full-screen
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=3.4.1.1
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New
X-Ubuntu-Gettext-Domain=gnome-terminal
[Desktop Action New]
Name=New Terminal Fullscreen
Exec=/usr/bin/gnome-terminal --window --full-screen
OnlyShowIn=Unity
Run Code Online (Sandbox Code Playgroud)
这将在您的活动搜索结果中放置一个应用程序调用终端全屏。它所做的只是调用相同的gnome-terminal命令但带有--window --full-screen参数,因此它以全屏方式启动。如果您总是想要全屏显示,请始终使用它。
希望这可以为某人简化事情。
Jac*_*cob 19
您可以为此使用 Compiz Window Rules插件。
确保您拥有 安装CompizConfig 设置管理器
并运行它。
然后,启用窗口规则插件:

并设置它以便与类的窗口Gnome-terminal匹配:

如果您使用不同的终端,请使用+按钮为您的终端构建匹配表达式。
如果您希望终端改为全屏显示,您可以在插件的配置对话框中使用适当的规则。
在较新版本的 Ubuntu(肯定是 16.04)中,您需要compiz-plugins安装软件包才能访问 Window Rules。
如果你没有它,你需要安装它sudo apt install compiz-plugins并重新启动。
小智 6
转到系统设置 -> 键盘。在“快捷方式”选项卡下,转到“自定义快捷方式”。创建一个名为“Launch Terminal Fullscreen”(或其他)的新条目,然后输入以下命令:
gnome-terminal --window --full-screen
Run Code Online (Sandbox Code Playgroud)
您应该能够单击该条目,然后按下您希望使用的组合键以设置新的键盘快捷键,但出于某种原因,这对我不起作用。如果是这种情况,您可能需要手动编辑启动器快捷方式...
根据此页面,可以在以下位置找到 Unity 的键盘快捷键:
~/.gconf/desktop/gnome/keybindings
Run Code Online (Sandbox Code Playgroud)
每个键绑定似乎都在一个单独的文件夹中,名为“custom0”、“custom1”等。编辑在这些文件夹之一中找到的“%gconf.xml”文件,其中包含您刚刚在“设置”中添加的键盘快捷键定义 - > 键盘”对话框,(如果您添加了)。这是我的,映射到“CTRL-ALT-m”:
<?xml version="1.0"?>
<gconf>
<entry name="action" mtime="1381112788" type="string">
<stringvalue>gnome-terminal --window --full-screen</stringvalue>
</entry>
<entry name="name" mtime="1381112788" type="string">
<stringvalue>Launch Terminal Fullscreen</stringvalue>
</entry>
<entry name="binding" mtime="1381110910" type="string">
<stringvalue><Primary><Alt>m</stringvalue>
</entry>
</gconf>
Run Code Online (Sandbox Code Playgroud)
我想您可以尝试将上述内容复制到名为“%gconf.xml”的新文件中,并将其放入文件夹中名为“customX”(其中“X”是下一个可用数字)的新~/.gconf/desktop/gnome/keybindings文件夹中。这个我还没试过。
手动编辑 XML 后,我注销并重新登录以强制重新扫描键绑定,瞧!
我现在意识到这已经过时了,但我认为其他人可能会遇到同样的问题。
这对我有用。打开终端并输入:
sudo gnome-desktop-item-edit /usr/share/applications/gnome-terminal.desktop
Run Code Online (Sandbox Code Playgroud)
然后放:
--maximize
Run Code Online (Sandbox Code Playgroud)
在“命令:”框中,在“gnome-terminal”之后
您可能需要调整键盘快捷键。不记得了,反正我的都是定制的。