当前位置: 首页 > article >正文

Mate桌面环境系统与终端模拟器参数配置

说明:
  MATE桌面环境在使用中会优化一些参数配置,例如:电源选项、屏幕配置、字体配置、终端模拟器(Mate Terminal)配置等等。
  通常工程师会根据自己喜好调整一些参数,修改后参数的保存位置在/home/username/.config/dconf/user,同时缓存文件会保留在/home/username/.cache/dconf/user中,当删除这两处user文件会重新加载系统默认配置。所以配置加载的顺序是:/home/username/.config/dconf/user–>系统默认配置。

系统默认参数配置位置

/usr/share/glib-2.0/schemas/	# 此目录可以通过grep来查找需要调整参数

例如:调整Scrollback参数

cd /usr/share/glib-2.0/schemas/
grep -ir "scrollback" .Binary file ./gschemas.compiled matches
./org.gnome.Terminal.gschema.xml:    <key name="scrollback-lines" type="i">
./org.gnome.Terminal.gschema.xml:      <summary>Number of lines to keep in scrollback</summary>
./org.gnome.Terminal.gschema.xml:      <description>Number of scrollback lines to keep around. You can scroll back in the terminal by this number of lines; lines that don’t fit in the scrollback are discarded. If scrollback_unlimited is true, this value is ignored.</description>
./org.gnome.Terminal.gschema.xml:    <key name="scrollback-unlimited" type="b">
./org.gnome.Terminal.gschema.xml:      <summary>Whether an unlimited number of lines should be kept in scrollback</summary>
./org.gnome.Terminal.gschema.xml:      <description>If true, scrollback lines will never be discarded. The scrollback history is stored on disk temporarily, so this may cause the system to run out of disk space if there is a lot of output to the terminal.</description>
./org.mate.terminal.gschema.xml:    <key name="scrollback-lines" type="i">
./org.mate.terminal.gschema.xml:      <summary>Number of lines to keep in scrollback</summary>
./org.mate.terminal.gschema.xml:      <description>Number of scrollback lines to keep around. You can scroll back in the terminal by this number of lines; lines that don't fit in the scrollback are discarded. If scrollback_unlimited is true, this value is ignored.</description>
./org.mate.terminal.gschema.xml:    <key name="scrollback-unlimited" type="b">
./org.mate.terminal.gschema.xml:      <summary>Whether an unlimited number of lines should be kept in scrollback</summary>
./org.mate.terminal.gschema.xml:      <description>If true, scrollback lines will never be discarded.  The scrollback history is stored on disk temporarily, so this may cause the system to run out of disk space if there is a lot of output to the terminal.</description>

vim org.mate.terminal.gschema.xml

    </key><key name="scrollback-lines" type="i"><default>10000</default>		# 这里加载默认值<summary>Number of lines to keep in scrollback</summary><description>Number of scrollback lines to keep around. You can scroll back in the terminal by this number of lines; lines that don't fit in the scrollback are discarded. If scrollback_unlimited is true, this value is ignored.</description></key><key name="scrollback-unlimited" type="b"><default>false</default>			# 关闭这里是禁用unlimited<summary>Whether an unlimited number of lines should be kept in scrollback</summary><description>If true, scrollback lines will never be discarded.  The scrollback history is stored on disk temporarily, so this may cause the system to run out of disk space if there is a lot of output to the terminal.</description>

修改完文件后,需要重新编译 GSettings 模式:

glib-compile-schemas /usr/share/glib-2.0/schemas/

重新登录后生效
在这里插入图片描述

小结:
  全用户生效,已创建用户需要更新/home/username/.config/dconf/user,新用户可加载默认配置。

http://www.lryc.cn/news/2387291.html

相关文章:

  • fabric 是一个开源框架,用于使用 AI 增强人类能力。它提供了一个模块化框架,用于使用一组可在任何地方使用的众包人工智能提示来解决特定问题
  • 基于PDF流式渲染的Word文档在线预览技术
  • 华为仓颉语言初识:结构体struct和类class的异同
  • 数据仓库基础知识总结
  • vue2使用element中多选组件el-checkbox-group,数据与UI更新不同步
  • linux磁盘分区及挂载、fdisk命令详解
  • anaconda 安装教程以及常用命令
  • C/C++的OpenCV的锐化
  • Eigen矩阵存储顺序以及转换
  • OpenLayers 加载ArcGIS瓦片数据
  • 2025蓝桥杯WP
  • 数字人教师:开启教育智慧革新之旅
  • Linux中Java开发、部署和运维常用命令
  • 详解srs流媒体服务器的集群
  • ubuntu22.04 安装 SecureCRT8.7.3
  • Day 37
  • libvirt设置虚拟机mtu实现原理
  • AstroNex空间任务智能控制研究与训练数据集
  • 汽车副水箱液位传感器介绍
  • Docker+MobaXterm+x11实现容器UI界面转发本地
  • IEEE出版|2025年智能制造、机器人与自动化国际学术会议 (IMRA2025)
  • EasyRTC嵌入式SDK音视频实时通话助力WebRTC技术与智能硬件协同发展
  • Higress MCP Server 安全再升级:API 认证为 AI 连接保驾护航
  • 多个vue2工程共享node_modules
  • 蓝桥杯178 全球变暖
  • 多模态理解大模型高性能优化丨前沿多模态模型开发与应用实战第七期
  • mysql 合集
  • Zustand V5教程:Vanilla Store 与 useStore 使用详解 + 实战 Demo
  • docker 搭建php 开发环境 添加扩展redis、swoole、xdebug(1)
  • 人脸识别技术合规备案最新政策详解