启动时的终端大小?

启动时的终端大小?

我在启动时启动一个显示时钟的终端。完成

[Desktop Entry]
Type=Application
Exec=gnome-terminal --command /home/noah/bin/clock
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_NG]=Terminal
Name=Terminal
Comment[en_NG]=Start Terminal On Startup
Comment=Start Terminal On Startup

已保存在/.config/autostart 如何告诉该终端以特定窗口大小启动?这对我来说仍然很新,所以我非常感谢帮助,谢谢

答案1

只需geometry在命令中添加您需要的值:

Exec=gnome-terminal --command /home/noah/bin/clock --geometry=24x24

您可以使用此命令查看所有选项

gnome-terminal --help-all

输出:

Usage:
  gnome-terminal [OPTION?] [-- COMMAND ?]

Help Options:
  -h, --help                      Show help options
  --help-all                      Show all help options
  --help-gtk                      Show GTK+ Options
  --help-terminal                 Show terminal options
  --help-window-options           Show per-window options
  --help-terminal-options         Show per-terminal options

GTK+ Options
  --class=CLASS                   Program class as used by the window manager
  --name=NAME                     Program name as used by the window manager
  --gdk-debug=FLAGS               GDK debugging flags to set
  --gdk-no-debug=FLAGS            GDK debugging flags to unset
  --gtk-module=MODULES            Load additional GTK+ modules
  --g-fatal-warnings              Make all warnings fatal
  --gtk-debug=FLAGS               GTK+ debugging flags to set
  --gtk-no-debug=FLAGS            GTK+ debugging flags to unset

Options to open new windows or terminal tabs; more than one of these may be specified:
  --window                        Open a new window containing a tab with the default profile
  --tab                           Open a new tab in the last-opened window with the default profile

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                      Maximize the window
  --full-screen                   Full-screen the window
  --geometry=GEOMETRY             Set the window size; for example: 80x24, or 80x24+200+200 (COLSxROWS+X+Y)
  --role=ROLE                     Set the window role
  --active                        Set the last specified tab as the active one in its window

Terminal options; if used before the first --window or --tab argument, sets the default for all terminals:
  -e, --command                   Execute the argument to this option inside the terminal
  --profile=PROFILE-NAME          Use the given profile instead of the default profile
  -t, --title=TITLE               Set the initial terminal title
  --working-directory=DIRNAME     Set the working directory
  --wait                          Wait until the child exits
  --fd=FD                         Forward file descriptor
  --zoom=ZOOM                     Set the terminal?s zoom factor (1.0 = normal size)

Application Options:
  --load-config=FILE              Load a terminal configuration file
  --preferences                   Show preferences window
  -p, --print-environment         Print environment variables to interact with the terminal
  -v, --verbose                   Increase diagnostic verbosity
  -q, --quiet                     Suppress output
  --display=DISPLAY               X display to use

答案2

选择Edit然后Profile Preferences

终端编辑配置文件.png

注意92列和30行。您可以调整这些值以使终端变大或变小。在我的例子中,我将其设置为比需要的少 1 行(正如我在回答您的问题时发现的那样):

在此处输入图片描述

相关内容