Answers:
以上都不是我在Debian Jessie上的工作。我从最近的gnome文档中得出了以下解决方案
## Find profile, see also Edit -> Profile Preferences -> Profile ID
gsettings get org.gnome.Terminal.ProfilesList list
## Substitute the relevant profile for UUID below - but include all / and :
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:UUID/ cursor-blink-mode off
## Disable globally (except gnome-terminal has its own config)
gsettings set org.gnome.desktop.interface cursor-blink false
要自动执行所有配置文件,请输入bash
for uuid in $(gsettings get org.gnome.Terminal.ProfilesList list | tr -d "[',]"); do
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:${uuid}/ cursor-blink-mode off
done
如上所示,这将从配置文件列表中检索UUID gsettings
,并删除不需要的字符[',]
。结果列表用于将设置cursor-blink-mode
为关闭。
尝试这个。要在桌面范围内禁用光标闪烁:只需按键盘上的Ctrl+ Alt+ T打开终端。打开时,运行以下命令:
gconftool-2 --set /desktop/gnome/interface/cursor_blink --type bool false
要仅针对Gnome终端的默认配置文件禁用闪烁:
gconftool-2 --set /apps/gnome-terminal/profiles/Default/cursor_blink_mode --type string off
资料来源:M.Friedrich
dconf write /org/gnome/terminal/legacy/profiles:/:<profile-uid>/cursor-blink-mode "'off'"
。可以从配置文件首选项中获取配置文件UID。感谢ArchWiki文档的帮助。