AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1229633
Accepted
un_armed_pawn
un_armed_pawn
Asked: 2020-04-23 17:42:49 +0800 CST2020-04-23 17:42:49 +0800 CST 2020-04-23 17:42:49 +0800 CST

启动时的终端尺寸?

  • 772

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

[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 我如何告诉该终端以特定的窗口大小启动?这对我来说仍然很新,所以我非常感谢帮助谢谢

gnome-terminal
  • 2 2 个回答
  • 1848 Views

2 个回答

  • Voted
  1. Best Answer
    schrodingerscatcuriosity
    2020-04-23T17:52:09+08:002020-04-23T17:52:09+08:00

    只需将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
    
    • 11
  2. WinEunuuchs2Unix
    2020-04-23T17:50:05+08:002020-04-23T17:50:05+08:00

    选择Edit然后Profile Preferences:

    终端编辑配置文件.png

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

    在此处输入图像描述

    • 4

相关问题

  • 使用终端应用程序的启动器,如何在程序完成后保持终端打开?

  • 如何为特定任务自动启动终端实例

  • 如何使 gnome-terminal 不透明?

  • Gnome-terminal 快捷方式在选项卡中打开多个 ssh 连接

  • 如何设置终端打开最大化

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve