如何禁用Gnome 3.8中的闪烁光标?


12

有此提出的解决方案来禁用侏儒终端闪烁的光标。但是,它似乎不再适用于Gnome 3.8。/apps/gnome-terminal/profiles/DefaultGconf中的选项不存在。

那么,什么是Gnome 3.8的有效解决方案?

Answers:


16

尝试(在终端中):

gsettings set org.gnome.desktop.interface cursor-blink false

如您所见,密钥已移至org.gnome.desktop.interface(通过GSettings),因此您可以根据需要访问它dconf-editor。


1
要仅禁用GNOME终端中的Gnome 3.8及以上,请尝试:dconf write /org/gnome/terminal/legacy/profiles:/:<profile-uid>/cursor-blink-mode "'off'"。可以从配置文件首选项中获取配置文件UID。感谢ArchWiki文档的帮助。
— g13n

4

以上都不是我在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为关闭。


好吧,那肯定是直观的,并且显然比旧的“切换复选框”界面要好得多...他们在想WTF吗?
— Nemo

2

尝试这个。要在桌面范围内禁用光标闪烁:只需按键盘上的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


嗨,米奇。这是行不通的。终端中的光标仍在闪烁。此外,它与我所提到的方法完全相同,并且也描述了它不适用于Gnome 3.8。
— Dan Sherban 2013年

我已经更改了答案中的命令。试试看,让我知道。
— 米奇

不幸的是仍然无法正常工作。对你起作用吗?
— Dan Sherban 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.