“终结者”终端不会播放铃声

Gab*_*les 4 sound command-line gnome-terminal terminator

在我的 PC 上,gnome-terminalUbuntu 18.04 中,当我运行以下命令时,铃声播放得很好:

echo -e "\a"
Run Code Online (Sandbox Code Playgroud)

然而,在我现在默认使用的terminator终端 ( ) 中,因为它具有漂亮的屏幕窗口功能,它不会播放声音!为什么不?sudo apt install terminator


不重复:这不是其他问题的重复,例如这个问题(Shell 脚本中的蜂鸣声不起作用?),因为我专门询问有关terminator终端的问题。例如,我的铃声在其他终端上工作正常,但在terminator. 这是一个新的、独特的问题。

Gab*_*les 5

事实证明,您只需启用该设置即可!(默认情况下它被禁用)。

右键单击屏幕terminator--> 首选项 --> 单击顶部的“配置文件”选项卡 --> 确保选择“常规”子选项卡 --> 选中“终端”下的“蜂鸣声”框右下角的响铃”部分:

在此输入图像描述

就是这样!现在可以完美运行——与 中相同gnome-terminal,甚至可以通过 ssh 进行:

echo -e "\a"
Run Code Online (Sandbox Code Playgroud)

有关的:

  1. shell 脚本中的蜂鸣声不起作用?

  • 除了启用“蜂鸣声”之外,我还必须在pulseaudio中加载“module-x11-bell”模块(请参阅https://forums.linuxmint.com/viewtopic.php?p=736811#p736811) (2认同)